Created
January 23, 2017 13:18
-
-
Save bulton-fr/ab9dc086b0e399d7a1c3bf48b4a2e567 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
namespace Test { | |
trait SoapCall { | |
protected $test = ''; | |
} | |
class Test { | |
use \Test\SoapCall; | |
} | |
class Customer extends \Test\Test { | |
} | |
} | |
namespace mocks { | |
trait SoapCall { | |
use \Test\SoapCall; | |
} | |
class Customer extends \Test\Customer { | |
use \mocks\SoapCall; | |
} | |
} | |
namespace { | |
$customer = new \mocks\Customer; | |
} | |
/* | |
PHP 5.6 : DEBUG Test\Test and mocks\SoapCall define the same property ($test) in the composition of mocks\Customer. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed on line number 24 | |
PHP 7.0 : No errors. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment