Add @generated annotation to lockfile readme, giving a hint for linters and other static analysis tools
parent
fff913d6de
commit
634d1aba63
|
@ -210,7 +210,9 @@ class Locker
|
||||||
public function setLockData(array $packages, $devPackages, array $platformReqs, $platformDevReqs, array $aliases, $minimumStability, array $stabilityFlags)
|
public function setLockData(array $packages, $devPackages, array $platformReqs, $platformDevReqs, array $aliases, $minimumStability, array $stabilityFlags)
|
||||||
{
|
{
|
||||||
$lock = array(
|
$lock = array(
|
||||||
'_readme' => array('This file locks the dependencies of your project to a known state', 'Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file'),
|
'_readme' => array('This file locks the dependencies of your project to a known state',
|
||||||
|
'Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file',
|
||||||
|
'This file is @gener'.'ated automatically'),
|
||||||
'hash' => $this->hash,
|
'hash' => $this->hash,
|
||||||
'packages' => null,
|
'packages' => null,
|
||||||
'packages-dev' => null,
|
'packages-dev' => null,
|
||||||
|
|
|
@ -120,7 +120,9 @@ class LockerTest extends \PHPUnit_Framework_TestCase
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('write')
|
->method('write')
|
||||||
->with(array(
|
->with(array(
|
||||||
'_readme' => array('This file locks the dependencies of your project to a known state', 'Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file'),
|
'_readme' => array('This file locks the dependencies of your project to a known state',
|
||||||
|
'Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file',
|
||||||
|
'This file is @gener'.'ated automatically'),
|
||||||
'hash' => 'md5',
|
'hash' => 'md5',
|
||||||
'packages' => array(
|
'packages' => array(
|
||||||
array('name' => 'pkg1', 'version' => '1.0.0-beta'),
|
array('name' => 'pkg1', 'version' => '1.0.0-beta'),
|
||||||
|
|
Loading…
Reference in New Issue