Skip to content

Commit

Permalink
Update the code base to PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TavoNiievez committed Jul 24, 2021
1 parent 86e3ae8 commit 3cfcc47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
26 changes: 14 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name":"codeception/module-laminas",
"description":"Codeception module for the Laminas Project",
"keywords":["codeception", "laminas"],
"homepage":"http://codeception.com/",
"type":"library",
"license":"MIT",
"authors":[
"name": "codeception/module-laminas",
"description": "Codeception module for the Laminas Project",
"keywords": [ "codeception", "laminas" ],
"homepage": "https://codeception.com/",
"type": "library",
"license": "MIT",
"authors": [
{
"name":"Gintautas Miselis"
"name": "Gintautas Miselis"
},
{
"name":"Michael Bodnarchuk"
"name": "Michael Bodnarchuk"
}
],
"minimum-stability": "RC",
"require": {
"php": "^7.3 || ~8.0.0",
"php": "^7.3 || ^8.0",
"codeception/lib-innerbrowser": "^1.0",
"codeception/codeception": "^4.0",
"laminas/laminas-db": "^2.11.3",
Expand All @@ -26,8 +26,10 @@
"codeception/module-doctrine2": "^1.0",
"codeception/module-rest": "^1.0"
},
"autoload":{
"classmap": ["src/"]
"autoload": {
"classmap": [
"src/"
]
},
"config": {
"classmap-authoritative": true
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A Codeception module for the Laminas Project

## Requirements

* `PHP 7.1` or higher.
* `PHP 7.3` or higher.

## Installation

Expand Down
8 changes: 2 additions & 6 deletions src/Codeception/Module/Laminas.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ public function grabServiceFromContainer(string $service)
* Adds service to a Laminas container
*
* @part services
* @param object $service
*/
public function addServiceToContainer(string $name, $service): void
public function addServiceToContainer(string $name, object $service): void
{
$this->client->addServiceToContainer($name, $service);
}
Expand Down Expand Up @@ -248,10 +247,7 @@ private function addInternalDomainsFromRoutes(Traversable $routes): void
}
}

/**
* @param object $route
*/
private function addInternalDomain($route): void
private function addInternalDomain(object $route): void
{
$regex = ReflectionHelper::readPrivateProperty($route, 'regex');
$this->domainCollector [] = '/^' . $regex . '$/';
Expand Down

0 comments on commit 3cfcc47

Please sign in to comment.