Skip to content

Commit

Permalink
Fix "Deprecated: Calling ReflectionProperty::setValue() with a single…
Browse files Browse the repository at this point in the history
… argument is deprecated".
  • Loading branch information
remcotolsma committed May 15, 2024
1 parent 754b9da commit 803e7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/NumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,14 @@ public function test_calculator() {

$calculator = $calculator_property->getValue();

$calculator_property->setValue( null );
$reflection->setStaticPropertyValue( 'calculator', null );

$calculators_property = $reflection->getProperty( 'calculators' );
$calculators_property->setAccessible( true );

$calculators = $calculators_property->getValue();

$calculators_property->setValue( [] );
$reflection->setStaticPropertyValue( 'calculators', [] );

$number_1 = new Number( '1' );
$number_2 = new Number( '2' );
Expand Down

0 comments on commit 803e7d7

Please sign in to comment.