Skip to content

Commit dcf2f5d

Browse files
committed
TravisCI removed, Changelog updated
1 parent 3a67fdc commit dcf2f5d

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

.travis.yml

-13
This file was deleted.

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9-
## [v2.0.1](https://github.com/linna/typed-array/compare/v2.0.0...v2.0.1) - 2019-03-XX
9+
## [v2.0.1](https://github.com/linna/typed-array/compare/v2.0.0...v2.0.1) - 2020-03-23
1010

1111
### Added
1212
- php 7.3 support
13+
- php 7.4 support
1314

1415
### Changed
1516
- `.scrutinizer.yml` updated for use phpunit from `vendor` directory
1617
- Merge pull request #14 from peter279k/enhance_stuffs with code enhancements
1718

19+
### Removed
20+
- Travis CI usage for test build.
21+
1822
## [v2.0.0](https://github.com/linna/typed-array/compare/v1.0.5...v2.0.0) - 2018-08-13
1923

2024
### Changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div align="center">
1414

15-
[![Build Status](https://travis-ci.org/linna/typed-array.svg?branch=master)](https://travis-ci.org/linna/typed-array)
15+
[![Tests](https://github.com/linna/typed-array/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/typed-array/actions/workflows/tests.yml)
1616
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/linna/typed-array/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/linna/typed-array/?branch=master)
1717
[![Code Coverage](https://scrutinizer-ci.com/g/linna/typed-array/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/linna/typed-array/?branch=master)
1818
[![StyleCI](https://styleci.io/repos/93407083/shield?branch=master&style=flat)](https://styleci.io/repos/93407083)
@@ -23,7 +23,7 @@
2323
This package provide typed arrays for php as extension of native [ArrayObject](http://php.net/manual/en/class.arrayobject.php).
2424

2525
## Requirements
26-
This package require php 7.1
26+
This package require php >= 7.1 and < 8.0
2727

2828
## Installation
2929
With composer:

src/TypedArray.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function __construct(string $type, array $array = [])
9494
throw new InvalidArgumentException(__CLASS__.': '.$type.' type passed to '.__METHOD__.' not supported.');
9595
}
9696

97-
//for not utilize foreach, compare sizes of array
97+
//to avoid foreach, compare sizes of array
9898
//before and after apply a filter :)
9999
if (\count($array) > \count(\array_filter($array, $this->allowedTypes[$type]))) {
100100
throw new InvalidArgumentException(__CLASS__.': Elements passed to '.__METHOD__.' must be of the type '.$type.'.');

tests/TypedArrayTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function testCreateInstanceWithRightObjectTypedArray()
315315
new ArrayObject([1.1, 2.2, 3.3]),
316316
new ArrayObject(['a', 'b', 'c']),
317317
]
318-
)
318+
)
319319
)
320320
);
321321
}
@@ -337,7 +337,7 @@ public function testCreateInstanceWithWrongObjectTypedArray()
337337
new ArrayObject([1.1, 2.2, 3.3]),
338338
new SplStack(),
339339
]
340-
)
340+
)
341341
)
342342
);
343343
}

0 commit comments

Comments
 (0)