Skip to content

Commit

Permalink
Update composer dependencies and clean up (#1385)
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 d362f2d + 4ff402e commit 2505d9c
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 69 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -49,8 +49,8 @@
"hamcrest/hamcrest-php": "^2.0.1"
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.6.10",
"symplify/easy-coding-standard": "^12.0.8"
"phpunit/phpunit": "^8.5 || ^9.6.17",
"symplify/easy-coding-standard": "^12.1.14"
},
"conflict": {
"phpunit/phpunit": "<8.0"
Expand Down
86 changes: 43 additions & 43 deletions composer.lock

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

4 changes: 2 additions & 2 deletions library/Mockery.php
Expand Up @@ -843,7 +843,7 @@ private static function declareType($fqn, $type): void
$targetCode = '<?php ';
$shortName = $fqn;

if (\mb_strpos($fqn, '\\')) {
if (\strpos($fqn, '\\')) {
$parts = \explode('\\', $fqn);

$shortName = \trim(\array_pop($parts));
Expand Down Expand Up @@ -933,7 +933,7 @@ private static function formatArgument($argument, $depth = 0)
$argument = '[' . \implode(', ', $sample) . ']';
}

return (\mb_strlen($argument) > 1000) ? \mb_substr($argument, 0, 1000) . '...]' : $argument;
return (\strlen($argument) > 1000) ? \substr($argument, 0, 1000) . '...]' : $argument;
}

if (\is_bool($argument)) {
Expand Down
10 changes: 5 additions & 5 deletions library/Mockery/Configuration.php
Expand Up @@ -23,8 +23,8 @@
use function class_implements;
use function get_parent_class;
use function is_a;
use function mb_strtolower;
use function sprintf;
use function strtolower;
use function trigger_error;

use const E_USER_DEPRECATED;
Expand Down Expand Up @@ -216,8 +216,8 @@ public function getDefaultMatcher($class)
*/
public function getInternalClassMethodParamMap($class, $method)
{
$class = mb_strtolower($class);
$method = mb_strtolower($method);
$class = strtolower($class);
$method = strtolower($method);

if (
array_key_exists($class, $this->_internalClassParamMap)
Expand Down Expand Up @@ -382,13 +382,13 @@ public function setInternalClassMethodParamMap($class, $method, array $map)
);
}

$class = mb_strtolower($class);
$class = strtolower($class);

if (! array_key_exists($class, $this->_internalClassParamMap)) {
$this->_internalClassParamMap[$class] = [];
}

$this->_internalClassParamMap[$class][mb_strtolower($method)] = $map;
$this->_internalClassParamMap[$class][strtolower($method)] = $map;
}

/**
Expand Down

0 comments on commit 2505d9c

Please sign in to comment.