Skip to content
Merged
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
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ PHP NEWS
- Reflection:
. Fix GH-9470 (ReflectionMethod constructor should not find private parent
method). (ilutov)
. Fix GH-10259 (ReflectionClass::getStaticProperties doesn't need null return
type). (kocsismate)

- Sockets:
. Added SO_ATTACH_REUSEPORT_CBPF socket option, to give tighter control
Expand Down
3 changes: 3 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ PHP 8.3 UPGRADE NOTES
a random seed, 0 will use zero as the seed. The functions are now consistent
with Mt19937::__construct().

- Reflection:
. Return type of ReflectionClass::getStaticProperties() is no longer nullable.

- Sockets:
. Added socket_atmark to checks if the socket is OOB marked.

Expand Down
2 changes: 1 addition & 1 deletion ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function getParentClass(): ReflectionClass|false {}
public function isSubclassOf(ReflectionClass|string $class): bool {}

/** @tentative-return-type */
public function getStaticProperties(): ?array {}
public function getStaticProperties(): array {}

/** @tentative-return-type */
public function getStaticPropertyValue(string $name, mixed $default = UNKNOWN): mixed {}
Expand Down
5 changes: 2 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.

2 changes: 1 addition & 1 deletion ext/reflection/tests/ReflectionClass_toString_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle

- Parameters [0] {
}
- Tentative return [ ?array ]
- Tentative return [ array ]
}

Method [ <internal:Reflection> public method getStaticPropertyValue ] {
Expand Down