1 2 3 4 5 6 7 8 9 10 11 12
<?php error_reporting(E_ALL | E_STRICT); class Message { public $number = 1; public function hello() { return "こんにちは"; } } $message1 = Message::hello();
1 2
Strict Standards: Non-static method Message::hello() should not be called statically in /t.php on line 12