Skip to content

Commit

Permalink
TravisCI removed, Changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Mar 23, 2021
1 parent 3a67fdc commit dcf2f5d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

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

### Added
- php 7.3 support
- php 7.4 support

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

### Removed
- Travis CI usage for test build.

## [v2.0.0](https://github.com/linna/typed-array/compare/v1.0.5...v2.0.0) - 2018-08-13

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div align="center">

[![Build Status](https://travis-ci.org/linna/typed-array.svg?branch=master)](https://travis-ci.org/linna/typed-array)
[![Tests](https://github.com/linna/typed-array/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/typed-array/actions/workflows/tests.yml)
[![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)
[![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)
[![StyleCI](https://styleci.io/repos/93407083/shield?branch=master&style=flat)](https://styleci.io/repos/93407083)
Expand All @@ -23,7 +23,7 @@
This package provide typed arrays for php as extension of native [ArrayObject](http://php.net/manual/en/class.arrayobject.php).

## Requirements
This package require php 7.1
This package require php >= 7.1 and < 8.0

## Installation
With composer:
Expand Down
2 changes: 1 addition & 1 deletion src/TypedArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct(string $type, array $array = [])
throw new InvalidArgumentException(__CLASS__.': '.$type.' type passed to '.__METHOD__.' not supported.');
}

//for not utilize foreach, compare sizes of array
//to avoid foreach, compare sizes of array
//before and after apply a filter :)
if (\count($array) > \count(\array_filter($array, $this->allowedTypes[$type]))) {
throw new InvalidArgumentException(__CLASS__.': Elements passed to '.__METHOD__.' must be of the type '.$type.'.');
Expand Down
4 changes: 2 additions & 2 deletions tests/TypedArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function testCreateInstanceWithRightObjectTypedArray()
new ArrayObject([1.1, 2.2, 3.3]),
new ArrayObject(['a', 'b', 'c']),
]
)
)
)
);
}
Expand All @@ -337,7 +337,7 @@ public function testCreateInstanceWithWrongObjectTypedArray()
new ArrayObject([1.1, 2.2, 3.3]),
new SplStack(),
]
)
)
)
);
}
Expand Down

0 comments on commit dcf2f5d

Please sign in to comment.