Skip to content

Commit 3c6a171

Browse files
authored
Merge pull request #1653 from cakephp/dereuromark-patch-1
remove version
2 parents 0715dcf + c7777e0 commit 3c6a171

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
*.test text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
99
*.yml text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=2
1010

11-
/docs export-ignore
12-
/tests export-ignore
11+
/tests/ export-ignore
1312
/.* export-ignore
1413
/appveyor.yml export-ignore
1514
/box.json export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ vendor
3333

3434
# this is user specific settings for running phpunit to override the defaults in phpunit.xml.dist
3535
phpunit.xml
36+
.phpunit.result.cache
3637

3738
# sqlite test database
3839
phinx_testing.sqlite3

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"keywords": ["phinx", "migrations", "database", "db", "database migrations"],
66
"homepage": "https://phinx.org",
77
"license": "MIT",
8-
"version": "0.11.1",
98
"authors": [{
109
"name": "Rob Morgan",
1110
"email": "robbym@gmail.com",

src/Phinx/Console/PhinxApplication.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,10 @@ class PhinxApplication extends Application
5353
* Class Constructor.
5454
*
5555
* Initialize the Phinx console application.
56-
*
57-
* @param string|null $version The Application Version, if null, use version out of composer.json file
5856
*/
59-
public function __construct($version = null)
57+
public function __construct()
6058
{
61-
if ($version === null) {
62-
$composerConfig = json_decode(file_get_contents(__DIR__ . '/../../../composer.json'));
63-
$version = $composerConfig->version;
64-
}
65-
66-
parent::__construct('Phinx by CakePHP - https://phinx.org.', $version);
59+
parent::__construct('Phinx by CakePHP - https://phinx.org.');
6760

6861
$this->addCommands([
6962
new Init(),

0 commit comments

Comments
 (0)