Skip to content

Update Core.php docblock for property_exists and trait_exists functions #1743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
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
7 changes: 3 additions & 4 deletions Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ function method_exists($object_or_class, string $method): bool {}
* @param string $property <p>
* The name of the property
* </p>
* @return bool true if the property exists, false if it doesn't exist or
* null in case of an error.
* @return bool true if the property exists, false otherwise
*/
#[Pure]
function property_exists($object_or_class, string $property): bool {}
Expand All @@ -441,7 +440,7 @@ function property_exists($object_or_class, string $property): bool {}
* Checks if the trait exists
* @param string $trait Name of the trait to check
* @param bool $autoload [optional] Whether to autoload if not already loaded.
* @return bool Returns TRUE if trait exists, FALSE if not, NULL in case of an error.
* @return bool Returns true if trait exists, false otherwise
* @link https://secure.php.net/manual/en/function.trait-exists.php
* @since 5.4
*/
Expand Down Expand Up @@ -1145,4 +1144,4 @@ function exit(string|int $status = 0): never {}
/**
* @since 8.4
*/
function die(string|int $status = 0): never {}
function die(string|int $status = 0): never {}
Loading