Skip to content

Commit

Permalink
Merge pull request composer#2785 from Firehed/master
Browse files Browse the repository at this point in the history
Add @generated annotation to lockfile (ref PR 2210)
  • Loading branch information
Seldaek committed May 24, 2014
2 parents 43a72d1 + 634d1ab commit 64ac32f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Composer/Package/Locker.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ public function getLockData()
public function setLockData(array $packages, $devPackages, array $platformReqs, $platformDevReqs, array $aliases, $minimumStability, array $stabilityFlags)
{
$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,
'packages' => null,
'packages-dev' => null,
Expand Down
4 changes: 3 additions & 1 deletion tests/Composer/Test/Package/LockerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public function testSetLockData()
->expects($this->once())
->method('write')
->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',
'packages' => array(
array('name' => 'pkg1', 'version' => '1.0.0-beta'),
Expand Down

0 comments on commit 64ac32f

Please sign in to comment.