Skip to content

Commit

Permalink
Enforcing purity/immutability on most of the converter API
Browse files Browse the repository at this point in the history
The API of this library is pretty much pure/referentially transparent,
and can therefore be used in contexts where I/O is to be avoided
  • Loading branch information
Ocramius committed Apr 6, 2020
1 parent 3d52560 commit 4430eee
Show file tree
Hide file tree
Showing 9 changed files with 1,464 additions and 222 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ php:
matrix:
include:
- php: 7.2
script:
- vendor/bin/psalm
- vendor/bin/phpunit
env: dependencies=lowest
- php: 7.3
script:
- vendor/bin/psalm
- vendor/bin/phpunit
env: dependencies=lowest
- php: 7.4
script:
- vendor/bin/psalm
- vendor/bin/phpunit
env: dependencies=highest

## Update composer and run the appropriate composer command
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"moontoast/math": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5.20"
"phpunit/phpunit": "^7.5.20",
"vimeo/psalm": "^3.10"
},
"suggest": {
"ramsey/uuid": "A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID)"
Expand Down
Loading

0 comments on commit 4430eee

Please sign in to comment.