Skip to content

Instantly share code, notes, and snippets.

@bulton-fr
Created January 23, 2017 13:18
Show Gist options
  • Save bulton-fr/ab9dc086b0e399d7a1c3bf48b4a2e567 to your computer and use it in GitHub Desktop.
Save bulton-fr/ab9dc086b0e399d7a1c3bf48b4a2e567 to your computer and use it in GitHub Desktop.
<?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