Skip to content

Commit 23d950a

Browse files
committed
Run tests with Symfony 7.4 by default
1 parent bfd00f8 commit 23d950a

File tree

2 files changed

+17
-24
lines changed

2 files changed

+17
-24
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
php-version:
22-
- "8.1"
2322
- "8.2"
2423
- "8.3"
2524
- "8.4"
@@ -35,7 +34,7 @@ jobs:
3534
dependencies:
3635
- "highest"
3736
symfony-version:
38-
- "locked"
37+
- "7.4"
3938
proxy:
4039
- "lazy-ghost"
4140
include:
@@ -45,7 +44,7 @@ jobs:
4544
mongodb-version: "6.0"
4645
driver-version: "1.21.0"
4746
topology: "server"
48-
symfony-version: "locked"
47+
symfony-version: false
4948
proxy: "lazy-ghost"
5049
# Test with Symfony 6.4
5150
- topology: "server"
@@ -61,37 +60,37 @@ jobs:
6160
mongodb-version: "6.0"
6261
driver-version: "stable"
6362
dependencies: "highest"
64-
symfony-version: "locked"
63+
symfony-version: false
6564
proxy: "lazy-ghost"
6665
# Test with a 8.0 replica set
6766
- topology: "replica_set"
6867
php-version: "8.2"
6968
mongodb-version: "8.0"
7069
driver-version: "stable"
7170
dependencies: "highest"
72-
symfony-version: "locked"
71+
symfony-version: false
7372
proxy: "lazy-ghost"
7473
# Test with ProxyManager
7574
- php-version: "8.2"
7675
mongodb-version: "6.0"
7776
driver-version: "stable"
7877
dependencies: "highest"
79-
symfony-version: "locked"
78+
symfony-version: false
8079
proxy: "proxy-manager"
8180
# Test with Native Lazy Objects
8281
- php-version: "8.4"
8382
mongodb-version: "8.0"
8483
driver-version: "stable"
8584
dependencies: "highest"
86-
symfony-version: "locked"
85+
symfony-version: false
8786
proxy: "native"
8887
# Test with extension 1.21
8988
- topology: "server"
9089
php-version: "8.2"
9190
mongodb-version: "8.0"
9291
driver-version: "1.21.0"
9392
dependencies: "highest"
94-
symfony-version: "locked"
93+
symfony-version: false
9594
proxy: "lazy-ghost"
9695
# Test with Symfony 7.4 LTS
9796
- topology: "server"
@@ -115,7 +114,7 @@ jobs:
115114
mongodb-version: "8.0"
116115
driver-version: "stable"
117116
dependencies: "highest"
118-
symfony-version: "locked"
117+
symfony-version: false
119118
proxy: "native"
120119
remove-optional-dependencies: true
121120
# Test with a sharded cluster
@@ -125,7 +124,7 @@ jobs:
125124
# mongodb-version: "6.0"
126125
# driver-version: "stable"
127126
# dependencies: "highest"
128-
# symfony-version: "locked"
127+
# symfony-version: false
129128
# proxy: "lazy-ghost"
130129

131130
steps:

phpstan-baseline.neon

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,6 @@ parameters:
354354
count: 1
355355
path: src/Event/OnClearEventArgs.php
356356

357-
-
358-
message: '#^Parameter \#1 \$initializer of method ProxyManager\\Proxy\\GhostObjectInterface\<object\>\:\:setProxyInitializer\(\) expects \(Closure\(ProxyManager\\Proxy\\GhostObjectInterface\<object\>\=, string\=, array\<string, mixed\>\=, Closure\|null\=, array\<string, mixed\>\=\)\: bool\)\|null, Closure\(ProxyManager\\Proxy\\GhostObjectInterface, string, array, mixed, array\)\: true given\.$#'
359-
identifier: argument.type
360-
count: 1
361-
path: src/Hydrator/HydratorFactory.php
362-
363357
-
364358
message: '#^Property Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory\:\:\$hydratorNamespace \(string\|null\) is never assigned null so it can be removed from the property type\.$#'
365359
identifier: property.unusedType
@@ -733,8 +727,8 @@ parameters:
733727
path: src/Proxy/Factory/LazyGhostProxyFactory.php
734728

735729
-
736-
message: '#^Call to function is_scalar\(\) with int\<min, \-1\>\|int\<5, max\> will always evaluate to true\.$#'
737-
identifier: function.alreadyNarrowedType
730+
message: '#^Call to an undefined static method Symfony\\Component\\VarExporter\\ProxyHelper\:\:generateLazyGhost\(\)\.$#'
731+
identifier: staticMethod.notFound
738732
count: 1
739733
path: src/Proxy/Factory/LazyGhostProxyFactory.php
740734

@@ -900,6 +894,12 @@ parameters:
900894
count: 3
901895
path: src/Utility/LifecycleEventManager.php
902896

897+
-
898+
message: '#^Method Documents\\Encryption\\Client\:\:__construct\(\) has parameter \$clientCards with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#'
899+
identifier: missingType.generics
900+
count: 1
901+
path: tests/Documents/Encryption/Client.php
902+
903903
-
904904
message: '#^Parameter \#1 \$builder of method Doctrine\\ODM\\MongoDB\\Aggregation\\Stage\\Facet\:\:pipeline\(\) expects Doctrine\\ODM\\MongoDB\\Aggregation\\Builder\|Doctrine\\ODM\\MongoDB\\Aggregation\\Stage, stdClass given\.$#'
905905
identifier: argument.type
@@ -1241,9 +1241,3 @@ parameters:
12411241
identifier: staticMethod.impossibleType
12421242
count: 1
12431243
path: tests/Tests/Types/BinaryUuidTypeTest.php
1244-
1245-
-
1246-
message: '#^Method Documents\\Encryption\\Client\:\:__construct\(\) has parameter \$clientCards with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#'
1247-
identifier: missingType.generics
1248-
count: 1
1249-
path: tests/Documents/Encryption/Client.php

0 commit comments

Comments
 (0)