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:
parent
832af78e28
commit
832f4007d6
2 changed files with 9 additions and 2 deletions
|
@ -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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue