Skip to content

Commit bc19613

Browse files
committed
Add PHPStan dependencies to platform bridge composer.json files
Add phpstan/phpstan and phpstan/phpstan-strict-rules to require-dev and PHPStan autoload-dev entry, aligning with store and tool bridges.
1 parent 7edbab2 commit bc19613

File tree

26 files changed

+78
-0
lines changed

26 files changed

+78
-0
lines changed

src/platform/src/Bridge/AiMlApi/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"symfony/http-client": "^7.3|^8.0"
3131
},
3232
"require-dev": {
33+
"phpstan/phpstan": "^2.0",
34+
"phpstan/phpstan-strict-rules": "^2.0",
3335
"phpunit/phpunit": "^11.5.46"
3436
},
3537
"minimum-stability": "dev",
@@ -40,6 +42,7 @@
4042
},
4143
"autoload-dev": {
4244
"psr-4": {
45+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4346
"Symfony\\AI\\Platform\\Bridge\\AiMlApi\\Tests\\": "Tests/"
4447
}
4548
},

src/platform/src/Bridge/Albert/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"symfony/http-client": "^7.3|^8.0"
3131
},
3232
"require-dev": {
33+
"phpstan/phpstan": "^2.0",
34+
"phpstan/phpstan-strict-rules": "^2.0",
3335
"phpunit/phpunit": "^11.5.46"
3436
},
3537
"minimum-stability": "dev",
@@ -40,6 +42,7 @@
4042
},
4143
"autoload-dev": {
4244
"psr-4": {
45+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4346
"Symfony\\AI\\Platform\\Bridge\\Albert\\Tests\\": "Tests/"
4447
}
4548
},

src/platform/src/Bridge/Anthropic/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"symfony/http-client": "^7.3|^8.0"
3131
},
3232
"require-dev": {
33+
"phpstan/phpstan": "^2.0",
34+
"phpstan/phpstan-strict-rules": "^2.0",
3335
"phpunit/phpunit": "^11.5.46"
3436
},
3537
"minimum-stability": "dev",
@@ -40,6 +42,7 @@
4042
},
4143
"autoload-dev": {
4244
"psr-4": {
45+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4346
"Symfony\\AI\\Platform\\Bridge\\Anthropic\\Tests\\": "Tests/"
4447
}
4548
},

src/platform/src/Bridge/Azure/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"symfony/http-client": "^7.3|^8.0"
3434
},
3535
"require-dev": {
36+
"phpstan/phpstan": "^2.0",
37+
"phpstan/phpstan-strict-rules": "^2.0",
3638
"phpunit/phpunit": "^11.5.46"
3739
},
3840
"minimum-stability": "dev",
@@ -43,6 +45,7 @@
4345
},
4446
"autoload-dev": {
4547
"psr-4": {
48+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4649
"Symfony\\AI\\Platform\\Bridge\\Azure\\Tests\\": "Tests/"
4750
}
4851
},

src/platform/src/Bridge/Bedrock/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"symfony/ai-platform": "@dev"
2727
},
2828
"require-dev": {
29+
"phpstan/phpstan": "^2.0",
30+
"phpstan/phpstan-strict-rules": "^2.0",
2931
"phpunit/phpunit": "^11.5.46"
3032
},
3133
"minimum-stability": "dev",
@@ -36,6 +38,7 @@
3638
},
3739
"autoload-dev": {
3840
"psr-4": {
41+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
3942
"Symfony\\AI\\Platform\\Bridge\\Bedrock\\Tests\\": "Tests/"
4043
}
4144
},

src/platform/src/Bridge/Cartesia/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"symfony/http-client": "^7.3|^8.0"
3131
},
3232
"require-dev": {
33+
"phpstan/phpstan": "^2.0",
34+
"phpstan/phpstan-strict-rules": "^2.0",
3335
"phpunit/phpunit": "^11.5.46"
3436
},
3537
"minimum-stability": "dev",
@@ -40,6 +42,7 @@
4042
},
4143
"autoload-dev": {
4244
"psr-4": {
45+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4346
"Symfony\\AI\\Platform\\Bridge\\Cartesia\\Tests\\": "Tests/"
4447
}
4548
},

src/platform/src/Bridge/Cerebras/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"symfony/http-client": "^7.3|^8.0"
3030
},
3131
"require-dev": {
32+
"phpstan/phpstan": "^2.0",
33+
"phpstan/phpstan-strict-rules": "^2.0",
3234
"phpunit/phpunit": "^11.5.46"
3335
},
3436
"minimum-stability": "dev",
@@ -39,6 +41,7 @@
3941
},
4042
"autoload-dev": {
4143
"psr-4": {
44+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4245
"Symfony\\AI\\Platform\\Bridge\\Cerebras\\Tests\\": "Tests/"
4346
}
4447
},

src/platform/src/Bridge/Decart/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"symfony/http-client": "^7.3|^8.0"
2525
},
2626
"require-dev": {
27+
"phpstan/phpstan": "^2.0",
28+
"phpstan/phpstan-strict-rules": "^2.0",
2729
"phpunit/phpunit": "^11.5.46"
2830
},
2931
"minimum-stability": "dev",
@@ -34,6 +36,7 @@
3436
},
3537
"autoload-dev": {
3638
"psr-4": {
39+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
3740
"Symfony\\AI\\Platform\\Bridge\\Decart\\Tests\\": "Tests/"
3841
}
3942
},

src/platform/src/Bridge/DeepSeek/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"symfony/http-client": "^7.3|^8.0"
3030
},
3131
"require-dev": {
32+
"phpstan/phpstan": "^2.0",
33+
"phpstan/phpstan-strict-rules": "^2.0",
3234
"phpunit/phpunit": "^11.5.46"
3335
},
3436
"minimum-stability": "dev",
@@ -39,6 +41,7 @@
3941
},
4042
"autoload-dev": {
4143
"psr-4": {
44+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4245
"Symfony\\AI\\Platform\\Bridge\\DeepSeek\\Tests\\": "Tests/"
4346
}
4447
},

src/platform/src/Bridge/DockerModelRunner/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"symfony/http-client": "^7.3|^8.0"
3030
},
3131
"require-dev": {
32+
"phpstan/phpstan": "^2.0",
33+
"phpstan/phpstan-strict-rules": "^2.0",
3234
"phpunit/phpunit": "^11.5.46"
3335
},
3436
"minimum-stability": "dev",
@@ -39,6 +41,7 @@
3941
},
4042
"autoload-dev": {
4143
"psr-4": {
44+
"Symfony\\AI\\PHPStan\\": "../../../../../.phpstan/",
4245
"Symfony\\AI\\Platform\\Bridge\\DockerModelRunner\\Tests\\": "Tests/"
4346
}
4447
},

0 commit comments

Comments
 (0)