Skip to content

Commit

Permalink
php5.4 not support boolval() function
Browse files Browse the repository at this point in the history
  • Loading branch information
toplan committed Dec 14, 2015
1 parent 5406ba4 commit 2388ad0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lightweight and powerful task load balancing for php
# Install

```php
composer require 'toplan/task-balancer:~0.2.2'
composer require 'toplan/task-balancer:~0.2.3'
```

# Usage
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "toplan/task-balancer",
"description": "lightweight and powerful task load balancing for php (like the nginx load balancing)",
"license": "MIT",
"version": "0.2.2",
"version": "0.2.3",
"keywords": ["task", "balance", "load balancing", "balancer"],
"authors": [
{
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/TaskBalancer/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(Task $task, $name, $weight = 1, $isBackUp = false, \
$this->task = $task;
$this->name = $name;
$this->weight = intval($weight);
$this->isBackUp = boolval($isBackUp);
$this->isBackUp = !!$isBackUp;
$this->work = $work;
}

Expand Down

0 comments on commit 2388ad0

Please sign in to comment.