Skip to content

Commit ad07e91

Browse files
authored
Merge pull request #227 from symfony-cmf/data-fixtures
allow data fixtures version 2
2 parents 026d59a + f86b371 commit ad07e91

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Changelog
44
5.x
55
===
66

7+
5.0.4
8+
-----
9+
10+
* Allow data fixtures version 2, to make this actually installable with Doctrine and Symfony 8.
11+
712
5.0.3
813
-----
914

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": "^8.1",
13-
"doctrine/data-fixtures": "^1.2",
13+
"doctrine/data-fixtures": "^1.2 || ^2.0",
1414
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0"
1515
},
1616
"require-dev": {

src/Unit/Constraint/SchemaAcceptsXml.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function count(): int
5757

5858
public function toString(): string
5959
{
60+
return 'schema-accepts-xml';
6061
}
6162

6263
protected function failureDescription($schemaFile): string
@@ -75,7 +76,7 @@ protected function additionalFailureDescription($schema): string
7576
$error = trim($error->message).($error->file ? ' in'.$error->file : '').' on line '.$error->line."\n";
7677

7778
// avoid repeating same error
78-
if (false === strpos($str, $error)) {
79+
if (!str_contains($str, $error)) {
7980
$str .= $error;
8081
}
8182
}

0 commit comments

Comments
 (0)