Skip to content

Commit 6a7ad16

Browse files
committedMar 14, 2022
bump php and symfony events
1 parent d23d850 commit 6a7ad16

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed
 

‎.travis.yml

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: php
2-
2+
dist: bionic
33
php:
4-
- 7.1
54
- 7.2
65
- 7.3
76
- 7.4
87
- 8.0
8+
- 8.1.0
99

1010
cache:
1111
directories:
@@ -21,13 +21,19 @@ env:
2121
- SYMFONY_DISPATCHER_VERSION=4.4.*
2222
- SYMFONY_DISPATCHER_VERSION=5.0.*
2323
- SYMFONY_DISPATCHER_VERSION=5.1.*
24+
- SYMFONY_DISPATCHER_VERSION=5.2.*
25+
- SYMFONY_DISPATCHER_VERSION=5.3.*
26+
- SYMFONY_DISPATCHER_VERSION=5.4.*
27+
- SYMFONY_DISPATCHER_VERSION=6.0.*
2428

2529
matrix:
2630
exclude:
27-
- php: 7.1
28-
env: SYMFONY_DISPATCHER_VERSION=5.0.*
29-
- php: 7.1
30-
env: SYMFONY_DISPATCHER_VERSION=5.1.*
31+
- php: 7.2
32+
env: SYMFONY_DISPATCHER_VERSION=6.0.*
33+
- php: 7.3
34+
env: SYMFONY_DISPATCHER_VERSION=6.0.*
35+
- php: 7.4
36+
env: SYMFONY_DISPATCHER_VERSION=6.0.*
3137
- php: 8.0
3238
env: SYMFONY_DISPATCHER_VERSION=4.0.*
3339
- php: 8.0
@@ -36,6 +42,14 @@ matrix:
3642
env: SYMFONY_DISPATCHER_VERSION=4.2.*
3743
- php: 8.0
3844
env: SYMFONY_DISPATCHER_VERSION=4.3.*
45+
- php: 8.1.0
46+
env: SYMFONY_DISPATCHER_VERSION=4.0.*
47+
- php: 8.1.0
48+
env: SYMFONY_DISPATCHER_VERSION=4.1.*
49+
- php: 8.1.0
50+
env: SYMFONY_DISPATCHER_VERSION=4.2.*
51+
- php: 8.1.0
52+
env: SYMFONY_DISPATCHER_VERSION=4.3.*
3953

4054
before_script:
4155
- composer self-update

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NodalFlow
22

3-
[![Documentation Status](https://readthedocs.org/projects/nodalflow/badge/?version=latest)](http://nodalflow.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.com/fab2s/NodalFlow.svg?branch=master)](https://travis-ci.com/fab2s/NodalFlow) [![Total Downloads](https://poser.pugx.org/fab2s/nodalflow/downloads)](https://packagist.org/packages/fab2s/nodalflow) [![Monthly Downloads](https://poser.pugx.org/fab2s/nodalflow/d/monthly)](https://packagist.org/packages/fab2s/nodalflow) [![Latest Stable Version](https://poser.pugx.org/fab2s/nodalflow/v/stable)](https://packagist.org/packages/fab2s/nodalflow) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/b75124fb-5efd-4182-9ec5-42cd8cd2bb25/mini.png)](https://insight.sensiolabs.com/projects/b75124fb-5efd-4182-9ec5-42cd8cd2bb25) [![Code Climate](https://codeclimate.com/github/fab2s/NodalFlow/badges/gpa.svg)](https://codeclimate.com/github/fab2s/NodalFlow) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/0a68622246734a16983616188eeefa01)](https://www.codacy.com/app/fab2s/NodalFlow) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fab2s/NodalFlow/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fab2s/NodalFlow/?branch=master) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) [![PHPPackages Referenced By](http://phppackages.org/p/fab2s/nodalflow/badge/referenced-by.svg)](http://phppackages.org/p/fab2s/nodalflow) [![License](https://poser.pugx.org/fab2s/nodalflow/license)](https://packagist.org/packages/fab2s/nodalflow)
3+
[![Documentation Status](https://readthedocs.org/projects/nodalflow/badge/?version=latest)](http://nodalflow.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.com/fab2s/NodalFlow.svg?branch=master)](https://app.travis-ci.com/fab2s/NodalFlow) [![Total Downloads](https://poser.pugx.org/fab2s/nodalflow/downloads)](https://packagist.org/packages/fab2s/nodalflow) [![Monthly Downloads](https://poser.pugx.org/fab2s/nodalflow/d/monthly)](https://packagist.org/packages/fab2s/nodalflow) [![Latest Stable Version](https://poser.pugx.org/fab2s/nodalflow/v/stable)](https://packagist.org/packages/fab2s/nodalflow) [![SymfonyInsight](https://insight.symfony.com/projects/7f025fbb-2cb8-4e21-8f12-2870027fe53a/mini.svg)](https://insight.symfony.com/projects/7f025fbb-2cb8-4e21-8f12-2870027fe53a) [![Code Climate](https://codeclimate.com/github/fab2s/NodalFlow/badges/gpa.svg)](https://codeclimate.com/github/fab2s/NodalFlow) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fab2s/NodalFlow/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fab2s/NodalFlow/?branch=master) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) [![License](https://poser.pugx.org/fab2s/nodalflow/license)](https://packagist.org/packages/fab2s/nodalflow)
44

55
`NodalFlow` is a generic Workflow that can execute chained tasks. It is designed around simple interfaces that specifies a flow composed of executable Nodes and Flows. Nodes can be executed or traversed. They accept a single parameter as argument and can be set to pass or not their result as an argument for the next node.
66
Flows also accept one argument and may be set to pass their result to be used or not as an argument for their first Node.
@@ -95,13 +95,13 @@ In other words, `NodalFlow` implements a directed graph structure in the form of
9595
```
9696
composer require "fab2s/nodalflow"
9797
```
98-
If you want to specifically install the php >=7.1.0 version, use:
98+
If you want to specifically install the php >=7.2.0 version, use:
9999

100100
```
101101
composer require "fab2s/nodalflow" ^2
102102
```
103103

104-
If you want to specifically install the php 5.6/7.0 version, use:
104+
If you want to specifically install the php 5.6/7.1 version, use:
105105

106106
```
107107
composer require "fab2s/nodalflow" ^1
@@ -132,7 +132,7 @@ $result = $nodalFlow->addPayload(('SomeClass::someTraversableMethod', true, true
132132

133133
## Requirements
134134

135-
`NodalFlow` is tested against php 7.1, 7.2, 7.3 and 7.4
135+
`NodalFlow` is tested against php 7.2, 7.3 and 7.4 and 8.0
136136

137137
## Contributing
138138

‎composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"MIT"
2323
],
2424
"require" : {
25-
"php": "^7.1|^8.0",
25+
"php": "^7.2|^8.0",
2626
"fab2s/context-exception": "^2.0",
2727
"fab2s/souuid": "^1.0",
2828
"symfony/contracts": "^1.1|^2.0"

‎src/Flows/FlowMap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ public function duration($seconds): array
337337
{
338338
$result = [
339339
'hour' => (int) floor($seconds / 3600),
340-
'min' => (int) floor(($seconds / 60) % 60),
341-
'sec' => $seconds % 60,
340+
'min' => (int) floor(\fmod($seconds / 60, 60)),
341+
'sec' => (int) \fmod($seconds, 60),
342342
'ms' => (int) round(\fmod($seconds, 1) * 1000),
343343
];
344344

0 commit comments

Comments
 (0)
Please sign in to comment.