Skip to content

Commit 9d0e461

Browse files
committed
fix(Classes): Fixed base class for WPFS_Stream
1 parent a8d3424 commit 9d0e461

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Reflection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Reflection {
2323
* @param string|object $target The target to get the class name for.
2424
* @return string
2525
*/
26-
private static function get_classname( string|object $target ): string {
26+
public static function get_classname( string|object $target ): string {
2727
if ( \is_string( $target ) ) {
2828
return $target;
2929
}
@@ -274,6 +274,7 @@ public static function get_inheritance_chain( string|object $target, bool $inclu
274274
$target = static::get_classname( $target );
275275
$chain = $inclusive ? array( $target ) : array();
276276

277+
//phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
277278
while ( $target = \get_parent_class( $target ) ) {
278279
$chain[] = $target;
279280
}

WP/Filesystem_Streaming.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Custom WP filesystem class
1313
*/
14-
class WP_Filesystem_Streaming extends WP_Filesystem_Base {
14+
class WP_Filesystem_Streaming extends WP_Filesystem_Direct {
1515
/**
1616
* Current file path
1717
*

0 commit comments

Comments
 (0)