Last active
June 28, 2016 05:16
-
-
Save daijinload/03562e7dd192d6a404bed0d167809e73 to your computer and use it in GitHub Desktop.
PHP7 NetBeans Dev 201606080002で何故かエラー表示される
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class StaticClass | |
{ | |
public static function sRun() | |
{ | |
echo 'static run!!'; | |
} | |
} | |
class useClass | |
{ | |
public static $StaticC = StaticClass::class; | |
public static function uRun() | |
{ | |
echo 'use run!!'; | |
self::$StaticC::sRun(); // error??? | |
} | |
} | |
$uRun = useClass::uRun(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment