Skip to content

Commit

Permalink
Refactor library/Mockery/Undefined.php (#1379)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Feb 29, 2024
2 parents 529488f + 4a37bf4 commit 2c1e852
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions library/Mockery/Undefined.php
Expand Up @@ -5,11 +5,14 @@
*
* @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
* @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
*
* @link https://github.com/mockery/mockery for the canonical source repository
*/

namespace Mockery;

use function spl_object_hash;

class Undefined
{
/**
Expand All @@ -25,12 +28,12 @@ public function __call($method, array $args)
}

/**
* Return a string, avoiding E_RECOVERABLE_ERROR
* Return a string, avoiding E_RECOVERABLE_ERROR.
*
* @return string
*/
public function __toString()
{
return __CLASS__ . ":" . spl_object_hash($this);
return __CLASS__ . ':' . spl_object_hash($this);
}
}

0 comments on commit 2c1e852

Please sign in to comment.