Skip to content

Commit 335f066

Browse files
committed
VersionInfo could have nullable version
1 parent b781607 commit 335f066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Libraries/VersionInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public static function get(): array
4040
* Gets the asset tag string to append to asset URLs.
4141
* Useful for CDNs to key on when re-deploying cached assets.
4242
*
43-
* @param array $version The bnetdocs version array.
43+
* @param array|null $version The bnetdocs version array.
4444
* @return string The asset tag value.
4545
*/
46-
private static function assetVersion(array $version): string
46+
private static function assetVersion(?array $version): string
4747
{
4848
return (
4949
!\CarlBennett\MVC\Libraries\Common::$config->bnetdocs->asset_versioning ? '' :

0 commit comments

Comments
 (0)