PHP 8.2.31
Preview: DisallowSelfActionsUnitTest.inc Size: 896 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc

<?php
class SomethingActions
{

    private static function _x()
    {
    }


    public static function y()
    {
        self::z();
        static::z();
        SomethingActions::z();
        static::_x();
        self::a();
        static::a();
    }


    public static function z()
    {
    }

    protected static function a()
    {
        self::a(); // recursion, yay!
        self::z();
        static::y();
        self::b();
        echo self::$_myVar;
        echo static::$yourVar;
    }
}

abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions {

    public static function getScreens($systemName)
    {

    }//end getScreens()

    public static function setHelpScreenTitle()
    {
        // This is allowed because we are in an abstract class.
        $screens = self::getScreens('');

    }//end setHelpScreenTitle()

}//end class
?>

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
896 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.42 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.86 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.53 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.43 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).