Skip to content

Commit 38d3a1e

Browse files
committed
Update readme with short array syntax and remove php7 comment
1 parent 5b6844f commit 38d3a1e

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ Example Connection configuration "test\_antimattr\_mongodb.php"
4141
/**
4242
* @link http://php.net/manual/en/mongoclient.construct.php
4343
*/
44-
return array(
44+
return [
4545
'host' => 'localhost', // default is localhost
4646
'port' => '27017', // default is 27017
4747
'dbname' => null, // optional, if authentication DB is required
4848
'user' => null, // optional, if authentication is required
4949
'password' => null, // optional, if authentication is required
50-
'options' => array(
50+
'options' => [
5151
'connect' => true // recommended
52-
)
53-
);
52+
]
53+
];
5454
```
5555

5656
XML or YAML Migration Configurations are supported
@@ -103,13 +103,13 @@ use AntiMattr\MongoDB\Migrations\Tools\Console\Command as AntiMattr;
103103
use Symfony\Component\Console\Application;
104104

105105
$application = new Application();
106-
$application->addCommands(array(
106+
$application->addCommands([
107107
new AntiMattr\ExecuteCommand(),
108108
new AntiMattr\GenerateCommand(),
109109
new AntiMattr\MigrateCommand(),
110110
new AntiMattr\StatusCommand(),
111111
new AntiMattr\VersionCommand()
112-
));
112+
]);
113113
$application->run();
114114
```
115115

@@ -343,8 +343,3 @@ Don't have the pre-commit hook running, please make sure to run the fixer/sniffe
343343
$ vendor/bin/php-cs-fixer fix src/
344344
$ vendor/bin/php-cs-fixer fix tests/
345345
```
346-
347-
PHP 7
348-
-----
349-
Please run before:
350-
composer require alcaeus/mongo-php-adapter

0 commit comments

Comments
 (0)