Skip to content

Commit 27e67b0

Browse files
committed
fix phpstan issues.
1 parent 836f2d1 commit 27e67b0

10 files changed

+19
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ script:
5757
# misssing pkg/amqp-ext pkg/job-queue pkg/redis
5858
- if [ "$PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/enqueue pkg/psr-queue pkg/fs pkg/simple-client; fi
5959
- if [ "$PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/stomp pkg/dbal pkg/enqueue-bundle pkg/null pkg/sqs pkg/test; fi
60+
- if [ "$PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/gearman pkg/pheanstalk pkg/async-event-dispatcher; fi
6061
- if [ "$PHP_CS_FIXER" = true ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
6162
- if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"; fi
6263
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi

phpstan.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
parameters:
22
excludes_analyse:
3-
- pkg/enqueue/Util/UUID.php
3+
- pkg/enqueue/Util/UUID.php
4+
- pkg/enqueue-bundle/Tests/Functional/App

pkg/gearman/Tests/Spec/GearmanSendToAndReceiveFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Gearman;
3+
namespace Enqueue\Gearman\Tests\Spec;
44

5+
use Enqueue\Gearman\GearmanConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\PsrQueue;
78
use Enqueue\Psr\Spec\SendToAndReceiveFromQueueSpec;

pkg/gearman/Tests/Spec/GearmanSendToAndReceiveNoWaitFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Gearman;
3+
namespace Enqueue\Gearman\Tests\Spec;
44

5+
use Enqueue\Gearman\GearmanConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToAndReceiveNoWaitFromQueueSpec;
78

pkg/gearman/Tests/Spec/GearmanSendToTopicAndReceiveFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Gearman;
3+
namespace Enqueue\Gearman\Tests\Spec;
44

5+
use Enqueue\Gearman\GearmanConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToTopicAndReceiveFromQueueSpec;
78

pkg/gearman/Tests/Spec/GearmanSendToTopicAndReceiveNoWaitFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Gearman;
3+
namespace Enqueue\Gearman\Tests\Spec;
44

5+
use Enqueue\Gearman\GearmanConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToTopicAndReceiveNoWaitFromQueueSpec;
78

pkg/pheanstalk/Tests/Spec/PheanstalkSendToAndReceiveFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Pheanstalk;
3+
namespace Enqueue\Pheanstalk\Tests\Spec;
44

5+
use Enqueue\Pheanstalk\PheanstalkConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\PsrQueue;
78
use Enqueue\Psr\Spec\SendToAndReceiveFromQueueSpec;

pkg/pheanstalk/Tests/Spec/PheanstalkSendToAndReceiveNoWaitFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Pheanstalk;
3+
namespace Enqueue\Pheanstalk\Tests\Spec;
44

5+
use Enqueue\Pheanstalk\PheanstalkConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToAndReceiveNoWaitFromQueueSpec;
78

pkg/pheanstalk/Tests/Spec/PheanstalkSendToTopicAndReceiveFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Pheanstalk;
3+
namespace Enqueue\Pheanstalk\Tests\Spec;
44

5+
use Enqueue\Pheanstalk\PheanstalkConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToTopicAndReceiveFromQueueSpec;
78

pkg/pheanstalk/Tests/Spec/PheanstalkSendToTopicAndReceiveNoWaitFromQueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Enqueue\Pheanstalk;
3+
namespace Enqueue\Pheanstalk\Tests\Spec;
44

5+
use Enqueue\Pheanstalk\PheanstalkConnectionFactory;
56
use Enqueue\Psr\PsrContext;
67
use Enqueue\Psr\Spec\SendToTopicAndReceiveNoWaitFromQueueSpec;
78

0 commit comments

Comments
 (0)