Page MenuHomePhorge

No OneTemporary

Size
741 B
Referenced Files
None
Subscribers
None
diff --git a/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php b/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php
index 60edf0cfd48..ea22f3a5529 100644
--- a/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php
+++ b/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php
@@ -33,7 +33,7 @@ class JsonSchemaAssertionTraitTest extends MediaWikiUnitTestCase {
$dir = __DIR__ . '/json';
// T391586 - Malformed JSON doesn't pass linting while making releases, so
// to have a txt file extension.
- foreach ( glob( __DIR__ . '/json/invalid*.{txt,json}' ) as $file ) {
+ foreach ( glob( __DIR__ . '/json/invalid*.{txt,json}', GLOB_BRACE ) as $file ) {
yield $file => [ $file, "$dir/schema1.json" ];
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (18 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227650
Default Alt Text
(741 B)

Event Timeline