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 2
2
3
3
namespace DeepCopy \f013 ;
4
4
5
+ use BadMethodCallException ;
5
6
use Doctrine \Persistence \Proxy ;
6
7
7
8
class A implements Proxy
@@ -11,14 +12,15 @@ class A implements Proxy
11
12
/**
12
13
* @inheritdoc
13
14
*/
14
- public function __load ()
15
+ public function __load (): void
15
16
{
16
17
}
17
18
18
19
/**
19
20
* @inheritdoc
20
21
*/
21
- public function __isInitialized ()
22
+ public function __isInitialized (): bool
22
23
{
24
+ throw new BadMethodCallException ();
23
25
}
24
26
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace DeepCopy \f013 ;
4
4
5
+ use BadMethodCallException ;
5
6
use Doctrine \Persistence \Proxy ;
6
7
7
8
class B implements Proxy
@@ -11,15 +12,16 @@ class B implements Proxy
11
12
/**
12
13
* @inheritdoc
13
14
*/
14
- public function __load ()
15
+ public function __load (): void
15
16
{
16
17
}
17
18
18
19
/**
19
20
* @inheritdoc
20
21
*/
21
- public function __isInitialized ()
22
+ public function __isInitialized (): bool
22
23
{
24
+ throw new BadMethodCallException ();
23
25
}
24
26
25
27
public function getFoo ()
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ class FooProxy implements Proxy
39
39
/**
40
40
* @inheritdoc
41
41
*/
42
- public function __load ()
42
+ public function __load (): void
43
43
{
44
44
throw new BadMethodCallException ();
45
45
}
46
46
47
47
/**
48
48
* @inheritdoc
49
49
*/
50
- public function __isInitialized ()
50
+ public function __isInitialized (): bool
51
51
{
52
52
throw new BadMethodCallException ();
53
53
}
You can’t perform that action at this time.
0 commit comments