Skip to content

Commit 008fb13

Browse files
committed
fix composer
2 parents 7159892 + cd3e13a commit 008fb13

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ foreach ($defaultCrudRoutes as $key => $route) {
7878
}
7979
```
8080

81-
# You can also pass params to the routes to disable JWT and in the future assigne a middleware
81+
You can also pass params to the routes to disable JWT and in the future assigne a middleware
8282
```php
8383
<?php
8484

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"php": ">=7.0",
1515
"ext-phalcon": ">=3.0.0",
1616
"vlucas/phpdotenv": "^2.0",
17-
"phalcon/incubator": ">=3.0.0",
18-
"dmkit/phalcon-jwt-auth": "dev-master"
17+
"phalcon/incubator": ">=3.0.0"
1918
},
2019
"require-dev": {
2120
"codeception/verify": "*",
2221
"vlucas/phpdotenv": "^2.0",
2322
"baka/phalconphp-hmac": "dev-auth-phalcon-3",
24-
"phalcon/incubator": "~3.3"
23+
"phalcon/incubator": "~3.3",
24+
"dmkit/phalcon-jwt-auth": "dev-master"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpcs.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Phalcon">
3+
<description>Phalcon Coding Standards</description>
4+
<arg value="-colors"/>
5+
<arg value="s"/>
6+
<rule ref="PSR2">
7+
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
8+
<exclude name="Generic.Files.LineLength.TooLong"/>
9+
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
10+
</rule>
11+
<file>tests/cli</file>
12+
<file>tests/integration</file>
13+
<file>tests/unit</file>
14+
<file>tests/_data/fixtures/Traits</file>
15+
<file>tests/_support/Helper</file>
16+
</ruleset>

src/RouterCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function mount(): void
9898
* @param string $function
9999
* @return void
100100
*/
101-
private function call(string $method, string $pattern, string $className, string $function, array $options): void
101+
private function call(string $method, string $pattern, string $className, string $function, array $options = []): void
102102
{
103103
if (empty($className) || empty($function)) {
104104
throw new Exception('Missing params, we need 2 parameters');

0 commit comments

Comments
 (0)