File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
tests/DeepCopyTest/Matcher/Doctrine Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
33namespace DeepCopy \f013 ;
44
5+ use BadMethodCallException ;
56use Doctrine \Persistence \Proxy ;
67
78class A implements Proxy
@@ -11,14 +12,15 @@ class A implements Proxy
1112 /**
1213 * @inheritdoc
1314 */
14- public function __load ()
15+ public function __load (): void
1516 {
1617 }
1718
1819 /**
1920 * @inheritdoc
2021 */
21- public function __isInitialized ()
22+ public function __isInitialized (): bool
2223 {
24+ throw new BadMethodCallException ();
2325 }
2426}
Original file line number Diff line number Diff line change 22
33namespace DeepCopy \f013 ;
44
5+ use BadMethodCallException ;
56use Doctrine \Persistence \Proxy ;
67
78class B implements Proxy
@@ -11,15 +12,16 @@ class B implements Proxy
1112 /**
1213 * @inheritdoc
1314 */
14- public function __load ()
15+ public function __load (): void
1516 {
1617 }
1718
1819 /**
1920 * @inheritdoc
2021 */
21- public function __isInitialized ()
22+ public function __isInitialized (): bool
2223 {
24+ throw new BadMethodCallException ();
2325 }
2426
2527 public function getFoo ()
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ class FooProxy implements Proxy
3939 /**
4040 * @inheritdoc
4141 */
42- public function __load ()
42+ public function __load (): void
4343 {
4444 throw new BadMethodCallException ();
4545 }
4646
4747 /**
4848 * @inheritdoc
4949 */
50- public function __isInitialized ()
50+ public function __isInitialized (): bool
5151 {
5252 throw new BadMethodCallException ();
5353 }
You can’t perform that action at this time.
0 commit comments