Your IP : 216.73.216.48


Current Path : /hdd/hdd12/install/php/php-7.4.32/Zend/tests/
Upload File :
Current File : //hdd/hdd12/install/php/php-7.4.32/Zend/tests/bug78776.phpt

--TEST--
Bug #78776: Abstract method implementation from trait does not check "static"
--FILE--
<?php

abstract class A
{
    abstract public function createApp();
}

class B extends A
{
    use C;
}

trait C
{
    public static function createApp()
    {
        echo "You should not be here\n";
    }
}

B::createApp();

?>
--EXPECTF--
Fatal error: Cannot make non static method A::createApp() static in class C in %s on line %d