Skip to content

Commit

Permalink
Add some more phpdoc context on assert classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taluu committed Dec 27, 2018
1 parent b306952 commit 268cbab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Assert/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* class to satisfy our needs...
*
* @link https://github.com/beberlei/assert/pull/265
* @link https://github.com/beberlei/assert/pull/272
*/
abstract class Assert extends Beberlei
{
Expand Down
7 changes: 6 additions & 1 deletion src/Assert/Assertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
/**
* Adds an alias to `noContent`, so that a `not` switch can work on `empty`.
*
* To remove once https://github.com/beberlei/assert/pull/272 has been merged and released.
*
* @method static bool allEmpty(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty for all values.
* @method static bool nullOrEmpty(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty or that the value is null.
*
* @link https://github.com/beberlei/assert/pull/272
*/
abstract class Assertion extends Beberlei
{
/** @return bool */
public static function empty($value, $message = null, $propertyPath = null)
{
parent::noContent($value, $message, $propertyPath);
return parent::noContent($value, $message, $propertyPath);
}
}

0 comments on commit 268cbab

Please sign in to comment.