Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function getPrototype(): ReflectionMethod {}
public function hasPrototype(): bool {}

/** @tentative-return-type */
#[\Deprecated(since: '8.5', message: "as it has no effect")]
#[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.1")]
public function setAccessible(bool $accessible): void {}
}

Expand Down Expand Up @@ -543,7 +543,7 @@ public function getDeclaringClass(): ReflectionClass {}
public function getDocComment(): string|false {}

/** @tentative-return-type */
#[\Deprecated(since: '8.5', message: "as it has no effect")]
#[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.1")]
public function setAccessible(bool $accessible): void {}

/** @tentative-return-type */
Expand Down
6 changes: 3 additions & 3 deletions ext/reflection/php_reflection_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ext/reflection/tests/ReflectionMethod_setAccessible.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ A::aProtected
A::aProtectedStatic
A::aProtectedStatic

Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d
A::aPrivate
A::aPrivate
A::aPrivateStatic
Expand Down
14 changes: 7 additions & 7 deletions ext/reflection/tests/ReflectionProperty_setAccessible.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ string(1) "f"
string(1) "g"
string(1) "h"

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d
string(1) "e"
string(1) "f"
string(1) "g"
Expand All @@ -120,11 +120,11 @@ string(1) "e"
string(1) "f"
string(1) "g"

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in %s on line %d
Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in %s on line %d
string(1) "e"
string(1) "f"
string(1) "g"
Expand Down