PHP Strict Standards错误
在部署项目时出现:Strict standards: Declaration of ... should be compatible with that of ...错误,我使用的是php 5.3.3
<?phpabstract class A {// 方法无参数public static function foo(){ echo 'bar'; }}abstract class B extends A {// 方法有参数public static function foo($str){ echo $str; }}?>
<?phpabstract class A {// 方法无参数public static function foo(){ echo 'bar'; }}abstract class B extends A {// 方法有参数public static function foo($str = NULL){ echo $str; }}?>
?