Skip to content

Commit 730dbf8

Browse files
authored
Remove calls to PHP 8.5-deprecated setAccessible (#1822)
These are no-op as of PHP 8.1 and thus no longer needed See also https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
1 parent 00e75ec commit 730dbf8

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/DataCollector/GateCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ protected function findViewFromHash($hash)
167167
} else {
168168
$reflection = new \ReflectionClass($finder);
169169
$property = $reflection->getProperty('views');
170-
$property->setAccessible(true);
171170
$this->reflection['viewfinderViews'] = $property;
172171
}
173172

src/DataCollector/QueryCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ protected function findViewFromHash($hash)
399399
} else {
400400
$reflection = new \ReflectionClass($finder);
401401
$property = $reflection->getProperty('views');
402-
$property->setAccessible(true);
403402
$this->reflection['viewfinderViews'] = $property;
404403
}
405404

tests/DebugbarTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ protected function getEnvironmentSetUp($app)
2424
$app->resolving(LaravelDebugbar::class, function ($debugbar) {
2525
$refObject = new \ReflectionObject($debugbar);
2626
$refProperty = $refObject->getProperty('enabled');
27-
$refProperty->setAccessible(true);
2827
$refProperty->setValue($debugbar, true);
2928
});
3029
}

0 commit comments

Comments
 (0)