Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 72795c2

Browse files
committed
Merge pull request #27 from BinaryKitten/feature-min-php
Feature min php
2 parents 47e8e60 + 720a98f commit 72795c2

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: php
22

33
php:
4-
- 5.3
5-
- 5.4
64
- 5.5
75
- 5.6
86

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"require": {
33-
"php": ">=5.3.23",
33+
"php": ">=5.5",
3434
"zendframework/zend-mvc": "2.*",
3535
"zendframework/zend-form": "2.*",
3636
"zendframework/zend-modulemanager": "2.*",

src/ZeffMu/ClosureController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ public function onDispatch(MvcEvent $e)
6060
$request = $e->getRequest();
6161
$response = $application->getResponse();
6262

63-
$closure = $this->closure;
64-
// if php > 5.4
65-
if (PHP_VERSION_ID > 50400) {
66-
$closure = $closure->bindTo($this);
67-
}
63+
$closure = $this->closure->bindTo($this);
6864

6965
$result = $closure(
7066
$routeMatch->getParams(), $request, $response

0 commit comments

Comments
 (0)