Skip to content

Instantly share code, notes, and snippets.

@daijinload
Last active June 28, 2016 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daijinload/03562e7dd192d6a404bed0d167809e73 to your computer and use it in GitHub Desktop.
Save daijinload/03562e7dd192d6a404bed0d167809e73 to your computer and use it in GitHub Desktop.
PHP7 NetBeans Dev 201606080002で何故かエラー表示される
<?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