Skip to content

Commit

Permalink
Fix readme and test names
Browse files Browse the repository at this point in the history
  • Loading branch information
RobQuistNL committed Apr 25, 2023
1 parent 0c6a23c commit 287dd3b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: CI
on: push

jobs:
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# php-bytearray

[![made by](https://img.shields.io/badge/made%20by-Acaisia-blue.svg?style=flat-square)](https://acaisia.com)
[![readme](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![tests](https://github.com/team-acaisia/php-bytearray/actions/workflows/test.yml/badge.svg)](https://github.com/team-acaisia/php-bytearray/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/team-acaisia/php-bytearray/branch/master/graph/badge.svg?token=ZEHI0KYXW1)](https://codecov.io/gh/team-acaisia/php-bytearray)
[![Made by](https://img.shields.io/badge/made%20by-Team%20Acaisia-blue.svg?style=flat-square)](https://acaisia.com)
[![Build Status](https://github.com/team-acaisia/php-bytearray/actions/workflows/CI/badge.svg)](https://github.com/team-acaisia/php-bytearray/actions/workflows/test.yml)
[![Coverage Status](https://codecov.io/gh/team-acaisia/php-bytearray/branch/master/graph/badge.svg?token=9ZDZ6O74I7)](https://codecov.io/gh/team-acaisia/php-bytearray)
[![Latest Stable Version](https://poser.pugx.org/team-acaisia/php-bytearray/v/stable)](https://packagist.org/packages/team-acaisia/php-bytearray)
[![Total Downloads](https://poser.pugx.org/team-acaisia/php-bytearray/downloads)](https://packagist.org/packages/team-acaisia/php-bytearray)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)

> A simple PHP Library to support byte arrays
Expand Down
6 changes: 3 additions & 3 deletions src/ByteArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
*/
class ByteArray implements \Stringable, \Countable //@todo might implement ArrayAccess or Traversable
{
private $array = [];
private array $array = [];

private function __construct()
{
// Private constructor
}

/**
* Returns a PHP native array with bytes. Internally, these are integers, but they will always be >=0 and <=254
* @return byte[]
* Returns a PHP native array with bytes. Internally, these are integers, but they will always be >=0 and <=255
* @return int[]
*/
public function toArray(): array
{
Expand Down

0 comments on commit 287dd3b

Please sign in to comment.