Skip to content

Commit

Permalink
Merge pull request #80 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance
  • Loading branch information
gsteel committed Jan 9, 2024
2 parents cc75e66 + 14f31fd commit c394b92
Show file tree
Hide file tree
Showing 10 changed files with 205 additions and 200 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
"laminas/laminas-stdlib": "^3.6"
},
"require-dev": {
"laminas/laminas-cache": "^2.13.2 || ^3.11",
"laminas/laminas-cache-storage-adapter-memory": "^1.1.0 || ^2.2",
"laminas/laminas-cache": "^2.13.2 || ^3.12",
"laminas/laminas-cache-storage-adapter-memory": "^1.1.0 || ^2.3",
"laminas/laminas-coding-standard": "~2.5.0",
"laminas/laminas-db": "^2.18",
"laminas/laminas-http": "^2.18",
"laminas/laminas-servicemanager": "^3.21.0",
"laminas/laminas-validator": "^2.38",
"phpunit/phpunit": "^10.3.1",
"laminas/laminas-http": "^2.19",
"laminas/laminas-servicemanager": "^3.22.1",
"laminas/laminas-validator": "^2.46",
"phpunit/phpunit": "^10.5.5",
"psalm/plugin-phpunit": "^0.18.4",
"psr/http-message": "^2.0",
"vimeo/psalm": "^5.14.1"
"vimeo/psalm": "^5.18.0"
},
"conflict": {
"laminas/laminas-servicemanager": "<3.3",
Expand Down
317 changes: 172 additions & 145 deletions composer.lock

Large diffs are not rendered by default.

32 changes: 7 additions & 25 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.14.1@b9d355e0829c397b9b3b47d0c0ed042a8a70284d">
<files psalm-version="5.18.0@b113f3ed0259fd6e212d87c3df80eec95a6abf19">
<file src="src/PubSubHubbub/AbstractCallback.php">
<DocblockTypeContradiction>
<code><![CDATA[$this->httpResponse === null]]></code>
Expand Down Expand Up @@ -71,7 +71,6 @@
<code>string|null</code>
</MixedInferredReturnType>
<MixedOperand>
<code>$code</code>
<code><![CDATA[$header['name']]]></code>
<code><![CDATA[$header['name']]]></code>
<code><![CDATA[$header['value']]]></code>
Expand Down Expand Up @@ -121,8 +120,6 @@
</MixedMethodCall>
<MixedOperand>
<code><![CDATA[$data['lease_seconds']]]></code>
<code>$key</code>
<code>$key</code>
</MixedOperand>
<MixedReturnStatement>
<code><![CDATA[$result->current()->getArrayCopy()]]></code>
Expand Down Expand Up @@ -185,8 +182,6 @@
<code>$value</code>
</MixedAssignment>
<MixedOperand>
<code>$name</code>
<code>$name</code>
<code><![CDATA[$response->getContent()]]></code>
</MixedOperand>
<PossiblyUnusedMethod>
Expand Down Expand Up @@ -268,8 +263,6 @@
</MixedAssignment>
<MixedOperand>
<code>$keyduplicate</code>
<code>$name</code>
<code>$name</code>
<code><![CDATA[$params['hub.lease_seconds']]]></code>
<code><![CDATA[$params['hub.topic']]]></code>
<code>$value</code>
Expand Down Expand Up @@ -2252,9 +2245,6 @@
<code>! is_numeric($statusCode)</code>
<code>is_string($statusCode)</code>
</DocblockTypeContradiction>
<MixedArgument>
<code>$statusCode</code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code>$name</code>
</MixedArgumentTypeCoercion>
Expand All @@ -2269,6 +2259,9 @@
<code><![CDATA[$this->headers[$normalizedName] ?? $default]]></code>
<code><![CDATA[$this->headers[$normalizedName] ?? $default]]></code>
</MixedReturnStatement>
<NoValue>
<code>$statusCode</code>
</NoValue>
<NullableReturnStatement>
<code><![CDATA[$this->headers[$normalizedName] ?? $default]]></code>
</NullableReturnStatement>
Expand All @@ -2278,6 +2271,9 @@
<RedundantCastGivenDocblockType>
<code>(int) $statusCode</code>
</RedundantCastGivenDocblockType>
<RedundantCondition>
<code><![CDATA[is_string($statusCode) && trim($statusCode) !== $statusCode]]></code>
</RedundantCondition>
</file>
<file src="src/Reader/Reader.php">
<DeprecatedInterface>
Expand Down Expand Up @@ -2354,9 +2350,6 @@
<LessSpecificReturnStatement>
<code>new $class()</code>
</LessSpecificReturnStatement>
<MixedArgument>
<code>$class</code>
</MixedArgument>
<MixedMethodCall>
<code>new $class()</code>
</MixedMethodCall>
Expand Down Expand Up @@ -2886,7 +2879,6 @@
<code>is_bool($status)</code>
<code>is_float($number)</code>
<code>is_float($number)</code>
<code>is_object($type)</code>
</DocblockTypeContradiction>
<MixedArgument>
<code>$value</code>
Expand Down Expand Up @@ -2923,9 +2915,6 @@
<code>(int) $number</code>
<code>(int) $number</code>
</RedundantCastGivenDocblockType>
<RedundantConditionGivenDocblockType>
<code>var_export($type, true)</code>
</RedundantConditionGivenDocblockType>
<TypeDoesNotContainType>
<code><![CDATA['no']]></code>
</TypeDoesNotContainType>
Expand All @@ -2935,7 +2924,6 @@
<code>! is_bool($value)</code>
<code>! is_string($value)</code>
<code>is_bool($status)</code>
<code>is_object($type)</code>
</DocblockTypeContradiction>
<MixedArgument>
<code>$val</code>
Expand Down Expand Up @@ -2986,9 +2974,6 @@
<RedundantCastGivenDocblockType>
<code>(string) $value</code>
</RedundantCastGivenDocblockType>
<RedundantConditionGivenDocblockType>
<code>var_export($type, true)</code>
</RedundantConditionGivenDocblockType>
<TypeDoesNotContainType>
<code><![CDATA['no']]></code>
</TypeDoesNotContainType>
Expand Down Expand Up @@ -3884,9 +3869,6 @@
<DeprecatedInterface>
<code>StandaloneExtensionManager</code>
</DeprecatedInterface>
<MixedArgument>
<code>$class</code>
</MixedArgument>
<MixedMethodCall>
<code>new $class()</code>
</MixedMethodCall>
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \Laminas\Feed\Reader\Collection\Author and \Laminas\Feed\Reader\Collection\Category
* or the generic class \Laminas\Feed\Reader\Collection\Collection instead.
*
* @template TKey
* @template TKey of array-key
* @template TValue
* @template-extends ArrayObject<TKey, TValue>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Collection/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use ArrayObject;

/**
* @template TKey
* @template TKey of array-key
* @template TValue
* @template-extends ArrayObject<TKey, TValue>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Collection/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use ArrayObject;

/**
* @template TKey
* @template TKey of array-key
* @template TValue
* @template-extends ArrayObject<TKey, TValue>
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Reader/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Laminas\Feed\Reader\Exception;

use function gettype;
use function get_debug_type;
use function intval;
use function is_numeric;
use function is_object;
Expand Down Expand Up @@ -79,7 +79,7 @@ private function validateStatusCode($statusCode)
throw new Exception\InvalidArgumentException(sprintf(
'%s expects a numeric status code; received %s',
self::class,
is_object($statusCode) ? $statusCode::class : gettype($statusCode)
get_debug_type($statusCode),
));
}

Expand Down Expand Up @@ -121,7 +121,7 @@ private function validateBody($body)
throw new Exception\InvalidArgumentException(sprintf(
'%s expects a string body, or an object that can cast to string; received %s',
self::class,
is_object($body) ? $body::class : gettype($body)
get_debug_type($body),
));
}

Expand All @@ -146,7 +146,7 @@ private function validateHeaders(array $headers)
throw new Exception\InvalidArgumentException(sprintf(
'Individual header values provided to %s must be a string or numeric; received %s for header %s',
self::class,
is_object($value) ? $value::class : gettype($value),
get_debug_type($value),
$name
));
}
Expand Down
12 changes: 5 additions & 7 deletions src/Writer/Extension/ITunes/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
use function count;
use function ctype_alpha;
use function ctype_digit;
use function gettype;
use function get_debug_type;
use function implode;
use function in_array;
use function is_bool;
use function is_float;
use function is_numeric;
use function is_object;
use function is_string;
use function lcfirst;
use function method_exists;
Expand All @@ -29,7 +28,6 @@
use function substr;
use function trigger_error;
use function ucfirst;
use function var_export;

use const E_USER_DEPRECATED;

Expand Down Expand Up @@ -325,7 +323,7 @@ public function setItunesEpisode($number)
if (! is_numeric($number) || is_float($number)) {
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "number" may only be an integer; received %s',
is_object($number) ? $number::class : gettype($number)
get_debug_type($number),
));
}

Expand All @@ -348,7 +346,7 @@ public function setItunesEpisodeType($type)
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "episodeType" MUST be one of the strings [%s]; received %s',
implode(', ', $validTypes),
is_object($type) ? $type::class : var_export($type, true)
get_debug_type($type),
));
}

Expand All @@ -369,7 +367,7 @@ public function setItunesIsClosedCaptioned($status)
if (! is_bool($status)) {
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "isClosedCaptioned" MUST be a boolean; received %s',
is_object($status) ? $status::class : var_export($status, true)
get_debug_type($status),
));
}

Expand All @@ -394,7 +392,7 @@ public function setItunesSeason($number)
if (! is_numeric($number) || is_float($number)) {
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "season" may only be an integer; received %s',
is_object($number) ? $number::class : gettype($number)
get_debug_type($number),
));
}

Expand Down
7 changes: 3 additions & 4 deletions src/Writer/Extension/ITunes/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
use function count;
use function ctype_alpha;
use function ctype_digit;
use function get_debug_type;
use function implode;
use function in_array;
use function is_array;
use function is_bool;
use function is_object;
use function is_string;
use function lcfirst;
use function method_exists;
Expand All @@ -27,7 +27,6 @@
use function substr;
use function trigger_error;
use function ucfirst;
use function var_export;

use const E_USER_DEPRECATED;

Expand Down Expand Up @@ -404,7 +403,7 @@ public function setItunesType($type)
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "type" MUST be one of [%s]; received %s',
implode(', ', $validTypes),
is_object($type) ? $type::class : var_export($type, true)
get_debug_type($type),
));
}
$this->data['type'] = $type;
Expand All @@ -423,7 +422,7 @@ public function setItunesComplete($status)
if (! is_bool($status)) {
throw new Writer\Exception\InvalidArgumentException(sprintf(
'invalid parameter: "complete" MUST be boolean; received %s',
is_object($status) ? $status::class : var_export($status, true)
get_debug_type($status),
));
}

Expand Down
9 changes: 4 additions & 5 deletions src/Writer/FeedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
use Traversable;

use function array_key_exists;
use function gettype;
use function get_debug_type;
use function is_array;
use function is_object;
use function method_exists;
use function sprintf;
use function str_replace;
Expand All @@ -31,7 +30,7 @@ public static function factory($data)
throw new Exception\InvalidArgumentException(sprintf(
'%s expects an array or Traversable argument; received "%s"',
__METHOD__,
is_object($data) ? $data::class : gettype($data)
get_debug_type($data),
));
}

Expand Down Expand Up @@ -96,7 +95,7 @@ protected static function createEntries($entries, Feed $feed)
throw new Exception\InvalidArgumentException(sprintf(
'%s::factory expects the "entries" value to be an array or Traversable; received "%s"',
static::class,
is_object($entries) ? $entries::class : gettype($entries)
get_debug_type($entries),
));
}

Expand All @@ -105,7 +104,7 @@ protected static function createEntries($entries, Feed $feed)
throw new Exception\InvalidArgumentException(sprintf(
'%s expects an array, Traversable, or Laminas\Feed\Writer\Entry argument; received "%s"',
__METHOD__,
is_object($data) ? $data::class : gettype($data)
get_debug_type($data),
));
}

Expand Down

0 comments on commit c394b92

Please sign in to comment.