Skip to content

Commit

Permalink
Merge remote-tracking branch 'laravel/5.3' into fix-queue-failed-job-…
Browse files Browse the repository at this point in the history
…event
  • Loading branch information
Brian McLachlin committed Nov 2, 2016
2 parents 1191786 + 6cf8c62 commit ea81fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Foundation\Testing\Concerns;

use Closure;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
Expand Down Expand Up @@ -766,7 +767,7 @@ public function assertViewHas($key, $value = null)

if (is_null($value)) {
PHPUnit::assertArrayHasKey($key, $this->response->original->getData());
} elseif ($value instanceof \Closure) {
} elseif ($value instanceof Closure) {
PHPUnit::assertTrue($value($this->response->original->$key));
} else {
PHPUnit::assertEquals($value, $this->response->original->$key);
Expand Down
3 changes: 2 additions & 1 deletion src/Illuminate/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Translation;

use Countable;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Support\Collection;
Expand Down Expand Up @@ -213,7 +214,7 @@ public function choice($key, $number, array $replace = [], $locale = null)
{
$line = $this->get($key, $replace, $locale = $locale ?: $this->locale ?: $this->fallback);

if (is_array($number) || $number instanceof \Countable) {
if (is_array($number) || $number instanceof Countable) {
$number = count($number);
}

Expand Down

0 comments on commit ea81fcf

Please sign in to comment.