Skip to content

Commit ea62842

Browse files
committed
Update array params in doc blocks
1 parent 004076e commit ea62842

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+180
-165
lines changed

Application/classes/CliHandler/PostAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
class PostAction implements PostActionInterface
1313
{
1414
/**
15-
* @param mixed $response
15+
* @param int $response
1616
*/
1717
public function process(&$response)
1818
{
19-
echo 'POSTACTION: ' . print_r($response, 1);
19+
echo 'POSTACTION: ' . print_r($response, true);
2020
//$response = 255;
2121
}
2222
}

Application/classes/CliHandler/PreAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
class PreAction implements PreActionInterface
1313
{
1414
/**
15-
* @param array $matchedRoute
15+
* @param array<array, array<mixed>> $matchedRoute
1616
*/
1717
public function process(array &$matchedRoute)
1818
{
19-
echo 'PREACTION: ' . print_r($matchedRoute, 1);
19+
echo 'PREACTION: ' . print_r($matchedRoute, true);
2020
//$matchedRoute[0] = 'repl';
2121
}
2222

Application/classes/CliHandler/PreRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class PreRoute implements PreRouteInterface
1313
{
1414
/**
15-
* @param array $arguments
15+
* @param array<string> $arguments
1616
*/
1717
public function process(array &$arguments)
1818
{

Application/classes/Command/TestCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(Test $test)
3434
public function dumpConfig(array $args = []): int
3535
{
3636
if (isset($args[1])) {
37-
echo print_r($this->config->get($args[1]), 1) . "\n";
37+
echo print_r($this->config->get($args[1]), true) . "\n";
3838
}
3939

4040
return 0;

Application/classes/Model/Test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* Test table model
99
*
1010
* @package Application\Model
11+
* @property int $id
12+
* @property string $text
13+
* @property int $number
1114
*/
1215
class Test extends Model
1316
{

Application/classes/Model/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* User table model
1313
*
1414
* @package Application\Model
15+
* @property int $id
1516
*/
1617
class User extends Model
1718
{

Application/classes/WebHandler/PostAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PostAction implements PostActionInterface
1717
*/
1818
public function process(ResponseInterface $response)
1919
{
20-
echo '<pre>' . print_r($response, 1) . '</pre>';
20+
echo '<pre>' . print_r($response, true) . '</pre>';
2121
}
2222
}
2323

Application/classes/WebHandler/PreAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
class PreAction implements PreActionInterface
1313
{
1414
/**
15-
* @param array $matchedRoute
15+
* @param array<array<mixed>> $matchedRoute
1616
*/
1717
public function process(array &$matchedRoute)
1818
{
19-
echo '<pre>' . print_r($matchedRoute, 1) . '</pre>';
19+
echo '<pre>' . print_r($matchedRoute, true) . '</pre>';
2020
/*
2121
$matched_route = [
2222
[

Framework/classes/Command/DefaultCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DefaultCommand extends BaseCommand
1414
/**
1515
* List supported commands with descriptions
1616
*
17-
* @param array $args Command arguments
17+
* @param array<string> $args Command arguments
1818
* @return int Return code
1919
*/
2020
public function listCommands(array $args = []): int

Framework/classes/Command/Repl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(Container $container)
2929
/**
3030
* Start framework shell
3131
*
32-
* @param array $args Command arguments
32+
* @param array<string> $args Command arguments
3333
*/
3434
public function shell(array $args = [])
3535
{

0 commit comments

Comments
 (0)