File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,17 @@ private function addMatcher($mock, $name)
98
98
public function registerForTearDown (Deactivatable $ deactivatable )
99
99
{
100
100
if (class_exists (Facade::class)) {
101
+ $ facade = Facade::instance ();
102
+
101
103
$ property = new ReflectionProperty (Facade::class, 'sealed ' );
102
104
$ property ->setAccessible (true );
103
- $ property ->setValue (false );
105
+ $ property ->setValue ($ facade , false );
104
106
105
- Facade:: registerSubscriber (
107
+ $ facade -> registerSubscriber (
106
108
new MockDisabler ($ deactivatable )
107
109
);
108
110
109
- $ property ->setValue (true );
111
+ $ property ->setValue ($ facade , true );
110
112
111
113
return ;
112
114
}
Original file line number Diff line number Diff line change 19
19
},
20
20
"require" : {
21
21
"php" : " >=7" ,
22
- "phpunit/phpunit" : " ^6 || ^7 || ^8 || ^9 || ^10" ,
22
+ "phpunit/phpunit" : " ^6 || ^7 || ^8 || ^9 || ^10.0.17 " ,
23
23
"php-mock/php-mock-integration" : " ^2.2.1"
24
24
},
25
25
"require-dev" : {
You can’t perform that action at this time.
0 commit comments