Skip to content

Commit

Permalink
Font Library: avoid deprected error in test (#54802)
Browse files Browse the repository at this point in the history
* fix deprecated call

* removing unwanted line
  • Loading branch information
matiasbenedetto authored and mikachan committed Sep 29, 2023
1 parent c20f4a1 commit 87c2691
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function tear_down() {
$reflection = new ReflectionClass( 'WP_Font_Library' );
$property = $reflection->getProperty( 'collections' );
$property->setAccessible( true );
$property->setValue( array() );
$property->setValue( null, array() );

// Clean up the /fonts directory.
foreach ( $this->files_in_dir( static::$fonts_dir ) as $file ) {
Expand Down

0 comments on commit 87c2691

Please sign in to comment.