Speed up build process

This commit is contained in:
2026-07-08 09:46:12 +00:00
parent a83efbfa5c
commit eb3fbbcbcf
5 changed files with 22 additions and 39 deletions

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive"> <phive xmlns="https://phar.io/phive">
<phar name="phpmd" version="^2.15.0" installed="2.15.0" location="./tools/phpmd" copy="false"/> <phar name="phpmd" version="^2.15.0" installed="2.15.0" location="./tools/phpmd" copy="false"/>
<phar name="phpstan" version="^2.1.12" installed="2.1.54" location="./tools/phpstan" copy="false"/> <phar name="phpstan" version="^2.1.12" installed="2.2.5" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="^7.0.0-beta6" installed="7.0.0-beta19" location="./tools/psalm" copy="false"/> <phar name="psalm" version="^7.0.0-beta6" installed="7.0.0-beta19" location="./tools/psalm" copy="false"/>
<phar name="phpcs" version="^3.12.2" installed="3.13.5" location="./tools/phpcs" copy="false"/> <phar name="phpcs" version="^3.12.2" installed="3.13.5" location="./tools/phpcs" copy="false"/>
<phar name="phpcbf" version="^3.12.2" installed="3.13.5" location="./tools/phpcbf" copy="false"/> <phar name="phpcbf" version="^3.12.2" installed="3.13.5" location="./tools/phpcbf" copy="false"/>
<phar name="phpdocumentor" version="^3.7.1" installed="3.9.1" location="./tools/phpdocumentor" copy="false"/> <phar name="phpdocumentor" version="^3.7.1" installed="3.10.0" location="./tools/phpdocumentor" copy="false"/>
<phar name="phpbench" version="^1.4.1" installed="1.6.1" location="./tools/phpbench" copy="false"/> <phar name="phpbench" version="^1.4.1" installed="1.7.0" location="./tools/phpbench" copy="false"/>
<phar name="infection" version="^0.29.14" installed="0.29.14" location="./tools/infection" copy="false"/> <phar name="infection" version="^0.29.14" installed="0.29.14" location="./tools/infection" copy="false"/>
<phar name="phpunit" version="^12.1.3" installed="12.5.24" location="./tools/phpunit" copy="false"/> <phar name="phpunit" version="^12.1.3" installed="12.5.31" location="./tools/phpunit" copy="false"/>
</phive> </phive>

View File

@@ -48,7 +48,7 @@
"html": [ "html": [
"pandoc --verbose -s README.md -o output/README.html", "pandoc --verbose -s README.md -o output/README.html",
"pandoc --verbose -f rst -s docs/index.rst -o output/index.html --metadata=lang:en", "pandoc --verbose -f rst -s docs/index.rst -o output/index.html --metadata=lang:en",
"tools/phpcs --generator=MarkDown | pandoc --verbose -f markdown -s -o output/CodeStandard.html --metadata title='Code Standard' --metadata=lang:en" "tools/phpcs --generator=HTML > output/CodeStandard.html"
], ],
"all": [ "all": [
"@test", "@test",

47
composer.lock generated
View File

@@ -160,20 +160,19 @@
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v5.7.0", "version": "v5.8.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" "reference": "044a6a392ff8ad0d61f14370a5fbbd0a0107152f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/044a6a392ff8ad0d61f14370a5fbbd0a0107152f",
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", "reference": "044a6a392ff8ad0d61f14370a5fbbd0a0107152f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-ctype": "*",
"ext-json": "*", "ext-json": "*",
"ext-tokenizer": "*", "ext-tokenizer": "*",
"php": ">=7.4" "php": ">=7.4"
@@ -212,9 +211,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/nikic/PHP-Parser/issues", "issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" "source": "https://github.com/nikic/PHP-Parser/tree/v5.8.0"
}, },
"time": "2025-12-06T11:56:16+00:00" "time": "2026-07-04T14:30:18+00:00"
}, },
{ {
"name": "openmetrics-php/exposition-text", "name": "openmetrics-php/exposition-text",
@@ -856,24 +855,24 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "11.5.55", "version": "11.5.56",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00" "reference": "5f83edffa6967c3db468d48a695ec7bcb02e9256"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/adc7262fccc12de2b30f12a8aa0b33775d814f00", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5f83edffa6967c3db468d48a695ec7bcb02e9256",
"reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00", "reference": "5f83edffa6967c3db468d48a695ec7bcb02e9256",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-dom": "*", "ext-dom": "*",
"ext-filter": "*",
"ext-json": "*", "ext-json": "*",
"ext-libxml": "*", "ext-libxml": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-xml": "*",
"ext-xmlwriter": "*", "ext-xmlwriter": "*",
"myclabs/deep-copy": "^1.13.4", "myclabs/deep-copy": "^1.13.4",
"phar-io/manifest": "^2.0.4", "phar-io/manifest": "^2.0.4",
@@ -938,31 +937,15 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy", "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.55" "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.56"
}, },
"funding": [ "funding": [
{ {
"url": "https://phpunit.de/sponsors.html", "url": "https://phpunit.de/sponsoring.html",
"type": "custom" "type": "other"
},
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
},
{
"url": "https://liberapay.com/sebastianbergmann",
"type": "liberapay"
},
{
"url": "https://thanks.dev/u/gh/sebastianbergmann",
"type": "thanks_dev"
},
{
"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
"type": "tidelift"
} }
], ],
"time": "2026-02-18T12:37:06+00:00" "time": "2026-07-06T14:52:39+00:00"
}, },
{ {
"name": "rector/rector", "name": "rector/rector",

View File

@@ -8,6 +8,6 @@ final class IdentityMatrix extends DiagonalMatrix
{ {
public function __construct(int $rows) public function __construct(int $rows)
{ {
parent::__construct(array_fill(0, $rows, 1)); parent::__construct(array_fill(0, $rows, (float)1));
} }
} }

View File

@@ -27,7 +27,7 @@ final class GaussianWeightedSumFactor extends GaussianFactor
* This following is used for convenience, for example, the first entry is [0, 1, 2] * This following is used for convenience, for example, the first entry is [0, 1, 2]
* corresponding to v[0] = a1*v[1] + a2*v[2] * corresponding to v[0] = a1*v[1] + a2*v[2]
* *
* @var array<float[]> $weights * @var array<float[]|int[]> $weights
*/ */
private array $weights = []; private array $weights = [];