Symfony Asset for static versions

Code
<?php

use Symfony\Component\Asset\UrlPackage;
use 
Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy;

$versionStrategy = new StaticVersionStrategy('1.0.0''%s?v%s');
$url 'http://my-website.dev';
$package = new UrlPackage($url$versionStrategy);

echo 
$package->getUrl('image.png');
Result
http://my-website.dev/image.png?v1.0.0
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8