Skip to content

Commit c15deb5

Browse files
cs278isfedorov
authored andcommitted
Fix Pure attribute on get_object_vars() and get_resource_type()
Neither of these functions depend on any external state.
1 parent 0627507 commit c15deb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ function get_class_vars(string $class): array {}
604604
* for the specified <i>object</i> in scope. If a property have
605605
* not been assigned a value, it will be returned with a null value.
606606
*/
607-
#[Pure(true)]
607+
#[Pure]
608608
function get_object_vars(object $object): array {}
609609

610610
/**
@@ -821,7 +821,7 @@ function create_function(string $args, string $code): false|string {}
821821
* by this function, the return value will be the string
822822
* Unknown.
823823
*/
824-
#[Pure(true)]
824+
#[Pure]
825825
function get_resource_type($resource): string {}
826826

827827
/**

0 commit comments

Comments
 (0)