Skip to content

Commit 4e0d98c

Browse files
committed
allow data fixtures version 2
1 parent 026d59a commit 4e0d98c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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)