1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Allow ints in source/dist reference

This commit is contained in:
Jordi Boggiano 2021-04-30 09:40:58 +02:00
parent 832af78e28
commit 832f4007d6
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 9 additions and 2 deletions

View file

@ -194,6 +194,13 @@ class ValidatingArrayLoaderTest extends TestCase
'name' => 'npm-asset/angular--core',
),
),
array( // refs as int or string
array(
'name' => 'foo/bar',
'source' => array('url' => 'https://example.org', 'reference' => 1234, 'type' => 'baz'),
'dist' => array('url' => 'https://example.org', 'reference' => 'foobar', 'type' => 'baz'),
),
),
);
}