Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Nov 8, 2021
1 parent 6c941eb commit 83164e2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 44 deletions.
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JBZoo / Retry

[![Build Status](https://travis-ci.org/JBZoo/Retry.svg)](https://travis-ci.org/JBZoo/Retry) [![Coverage Status](https://coveralls.io/repos/JBZoo/Retry/badge.svg)](https://coveralls.io/github/JBZoo/Retry) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Retry/coverage.svg)](https://shepherd.dev/github/JBZoo/Retry) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jbzoo/retry/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jbzoo/retry/?branch=master) [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/retry/badge)](https://www.codefactor.io/repository/github/jbzoo/retry/issues) [![PHP Strict Types](https://img.shields.io/badge/strict__types-%3D1-brightgreen)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)
[![Coverage Status](https://coveralls.io/repos/JBZoo/Retry/badge.svg)](https://coveralls.io/github/JBZoo/Retry) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Retry/coverage.svg)](https://shepherd.dev/github/JBZoo/Retry) [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/retry/badge)](https://www.codefactor.io/repository/github/jbzoo/retry/issues) [![PHP Strict Types](https://img.shields.io/badge/strict__types-%3D1-brightgreen)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)
[![Stable Version](https://poser.pugx.org/jbzoo/retry/version)](https://packagist.org/packages/jbzoo/retry) [![Latest Unstable Version](https://poser.pugx.org/jbzoo/retry/v/unstable)](https://packagist.org/packages/jbzoo/retry) [![Dependents](https://poser.pugx.org/jbzoo/retry/dependents)](https://packagist.org/packages/jbzoo/retry/dependents?order_by=downloads) [![GitHub Issues](https://img.shields.io/github/issues/jbzoo/retry)](https://github.com/JBZoo/Retry/issues) [![Total Downloads](https://poser.pugx.org/jbzoo/retry/downloads)](https://packagist.org/packages/jbzoo/retry/stats) [![GitHub License](https://img.shields.io/github/license/jbzoo/retry)](https://github.com/JBZoo/Retry/blob/master/LICENSE)


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^2.13.1"
"jbzoo/toolbox-dev" : "^3.1.0"
},

"replace" : {
Expand Down
4 changes: 3 additions & 1 deletion src/Retry.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public function setStrategy($strategy): self
protected function buildStrategy($strategy): callable
{
if (\is_string($strategy) && \array_key_exists($strategy, $this->strategies)) {
return new $this->strategies[$strategy]();
/** @var callable $result */
$result = new $this->strategies[$strategy]();
return $result;
}

if (\is_callable($strategy)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/RetryReadmeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ protected function setUp(): void
{
parent::setUp();

$this->params['scrutinizer'] = true;
$this->params['codefactor'] = true;
$this->params['strict_types'] = true;
$this->params['travis'] = false;
}
}

0 comments on commit 83164e2

Please sign in to comment.