Skip to content

Commit

Permalink
bump php and symfony events
Browse files Browse the repository at this point in the history
  • Loading branch information
fab2s committed Mar 14, 2022
1 parent d23d850 commit 6a7ad16
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: php

dist: bionic
php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1.0

cache:
directories:
Expand All @@ -21,13 +21,19 @@ env:
- SYMFONY_DISPATCHER_VERSION=4.4.*
- SYMFONY_DISPATCHER_VERSION=5.0.*
- SYMFONY_DISPATCHER_VERSION=5.1.*
- SYMFONY_DISPATCHER_VERSION=5.2.*
- SYMFONY_DISPATCHER_VERSION=5.3.*
- SYMFONY_DISPATCHER_VERSION=5.4.*
- SYMFONY_DISPATCHER_VERSION=6.0.*

matrix:
exclude:
- php: 7.1
env: SYMFONY_DISPATCHER_VERSION=5.0.*
- php: 7.1
env: SYMFONY_DISPATCHER_VERSION=5.1.*
- php: 7.2
env: SYMFONY_DISPATCHER_VERSION=6.0.*
- php: 7.3
env: SYMFONY_DISPATCHER_VERSION=6.0.*
- php: 7.4
env: SYMFONY_DISPATCHER_VERSION=6.0.*
- php: 8.0
env: SYMFONY_DISPATCHER_VERSION=4.0.*
- php: 8.0
Expand All @@ -36,6 +42,14 @@ matrix:
env: SYMFONY_DISPATCHER_VERSION=4.2.*
- php: 8.0
env: SYMFONY_DISPATCHER_VERSION=4.3.*
- php: 8.1.0
env: SYMFONY_DISPATCHER_VERSION=4.0.*
- php: 8.1.0
env: SYMFONY_DISPATCHER_VERSION=4.1.*
- php: 8.1.0
env: SYMFONY_DISPATCHER_VERSION=4.2.*
- php: 8.1.0
env: SYMFONY_DISPATCHER_VERSION=4.3.*

before_script:
- composer self-update
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NodalFlow

[![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)
[![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)

`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.
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.
Expand Down Expand Up @@ -95,13 +95,13 @@ In other words, `NodalFlow` implements a directed graph structure in the form of
```
composer require "fab2s/nodalflow"
```
If you want to specifically install the php >=7.1.0 version, use:
If you want to specifically install the php >=7.2.0 version, use:

```
composer require "fab2s/nodalflow" ^2
```

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

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

## Requirements

`NodalFlow` is tested against php 7.1, 7.2, 7.3 and 7.4
`NodalFlow` is tested against php 7.2, 7.3 and 7.4 and 8.0

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"MIT"
],
"require" : {
"php": "^7.1|^8.0",
"php": "^7.2|^8.0",
"fab2s/context-exception": "^2.0",
"fab2s/souuid": "^1.0",
"symfony/contracts": "^1.1|^2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/Flows/FlowMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ public function duration($seconds): array
{
$result = [
'hour' => (int) floor($seconds / 3600),
'min' => (int) floor(($seconds / 60) % 60),
'sec' => $seconds % 60,
'min' => (int) floor(\fmod($seconds / 60, 60)),
'sec' => (int) \fmod($seconds, 60),
'ms' => (int) round(\fmod($seconds, 1) * 1000),
];

Expand Down

0 comments on commit 6a7ad16

Please sign in to comment.