Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Commit f06ee1e

Browse files
authored
Merge pull request #22 from sunrise-php/release/v1.3.2
v1.3.2
2 parents 4ce9d9c + 2113f1d commit f06ee1e

12 files changed

Lines changed: 238 additions & 190 deletions

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ jobs:
1010
steps:
1111
- checkout
1212
- run: php -v
13-
- run: composer install --no-interaction --prefer-source
14-
- run: php vendor/bin/phpunit --colors=always
13+
- run: composer install --no-interaction
14+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
1515
php72:
1616
docker:
1717
- image: circleci/php:7.2-cli-node-browsers
1818
steps:
1919
- checkout
2020
- run: php -v
21-
- run: composer install --no-interaction --prefer-source
22-
- run: php vendor/bin/phpunit --colors=always
21+
- run: composer install --no-interaction
22+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
2323
php73:
2424
docker:
2525
- image: circleci/php:7.3-cli-node-browsers
2626
steps:
2727
- checkout
2828
- run: php -v
29-
- run: composer install --no-interaction --prefer-source
30-
- run: php vendor/bin/phpunit --colors=always
29+
- run: composer install --no-interaction
30+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
3131
php74:
3232
docker:
3333
- image: circleci/php:7.4-cli-node-browsers
3434
steps:
3535
- checkout
3636
- run: php -v
37-
- run: composer install --no-interaction --prefer-source
38-
- run: php vendor/bin/phpunit --colors=always
37+
- run: composer install --no-interaction
38+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
3939
php80:
4040
docker:
4141
- image: circleci/php:8.0-cli-node-browsers
4242
steps:
4343
- checkout
4444
- run: php -v
45-
- run: composer install --no-interaction --prefer-source
46-
- run: php vendor/bin/phpunit --colors=always
45+
- run: composer install --no-interaction
46+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
4747
workflows:
4848
version: 2
4949
build:

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ indent_size = 4
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true
1313

14-
[*.md]
15-
trim_trailing_whitespace = false
16-
1714
[*.yml]
1815
indent_size = 2

.gitignore

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
.php_cs.cache
2-
.phpunit.result.cache
3-
composer.lock
4-
coverage.xml
5-
phpcs.xml
6-
phpunit.xml
7-
vendor/
1+
/.php_cs.cache
2+
/.phpunit.result.cache
3+
/composer.lock
4+
/coverage.xml
5+
/phpbench.json
6+
/phpcs.xml
7+
/phpunit.xml
8+
/psalm.xml
9+
/vendor/

.scrutinizer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
build:
2+
environment:
3+
php:
4+
version: '8.0'
25
nodes:
36
analysis:
47
tests:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Sunrise // PHP
3+
Copyright (c) 2018 Anatoly Nekhay
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Stream wrapper for PHP 7.1+ (incl. PHP 8) based on PSR-7 & PSR-17
1+
## Stream wrapper for PHP 7.1+ based on PSR-7 and PSR-17
22

33
[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support)
44
[![Build Status](https://circleci.com/gh/sunrise-php/stream.svg?style=shield)](https://circleci.com/gh/sunrise-php/stream)
@@ -8,10 +8,6 @@
88
[![Latest Stable Version](https://poser.pugx.org/sunrise/stream/v/stable?format=flat)](https://packagist.org/packages/sunrise/stream)
99
[![License](https://poser.pugx.org/sunrise/stream/license?format=flat)](https://packagist.org/packages/sunrise/stream)
1010

11-
## Awards
12-
13-
[![SymfonyInsight](https://insight.symfony.com/projects/a6301a76-9b35-49a3-adb1-ebbf59f810f2/big.svg)](https://insight.symfony.com/projects/a6301a76-9b35-49a3-adb1-ebbf59f810f2)
14-
1511
## Installation
1612

1713
```bash
@@ -46,6 +42,8 @@ $stream = (new StreamFactory)->createStreamFromTemporaryFile(?string);
4642
$stream->close();
4743
```
4844

45+
---
46+
4947
## Test run
5048

5149
```bash

composer.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sunrise/stream",
33
"homepage": "https://github.com/sunrise-php/stream",
4-
"description": "Simple Stream wrapper for PHP 7.1+ based on PSR-7 & PSR-17",
4+
"description": "Stream wrapper for PHP 7.1+ based on PSR-7 and PSR-17",
55
"license": "MIT",
66
"keywords": [
77
"fenric",
@@ -16,15 +16,18 @@
1616
"authors": [
1717
{
1818
"name": "Anatoly Fenric",
19-
"email": "anatoly@fenric.ru",
20-
"homepage": "https://anatoly.fenric.ru/"
19+
"email": "afenric@gmail.com",
20+
"homepage": "https://github.com/fenric"
2121
},
2222
{
2323
"name": "李昀陞 (Peter)",
2424
"email": "peter279k@gmail.com",
2525
"homepage": "https://github.com/peter279k"
2626
}
2727
],
28+
"provide": {
29+
"psr/http-message-implementation": "1.0"
30+
},
2831
"require": {
2932
"php": "^7.1|^8.0",
3033
"psr/http-factory": "^1.0",
@@ -34,9 +37,6 @@
3437
"phpunit/phpunit": "7.5.20|9.5.0",
3538
"sunrise/coding-standard": "1.0.0"
3639
},
37-
"provide": {
38-
"psr/http-message-implementation": "1.0"
39-
},
4040
"autoload": {
4141
"psr-4": {
4242
"Sunrise\\Stream\\": "src/"
@@ -45,7 +45,12 @@
4545
"scripts": {
4646
"test": [
4747
"phpcs",
48-
"XDEBUG_MODE=coverage phpunit --colors=always --coverage-text"
48+
"psalm",
49+
"XDEBUG_MODE=coverage phpunit --coverage-text --colors=always"
50+
],
51+
"build": [
52+
"phpdoc -d src/ -t phpdoc/",
53+
"XDEBUG_MODE=coverage phpunit --coverage-html coverage/"
4954
]
5055
}
5156
}

phpunit.xml.dist

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0"?>
2-
<phpunit colors="true">
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
>
6+
<coverage>
7+
<include>
8+
<directory>./src</directory>
9+
</include>
10+
</coverage>
311
<testsuites>
4-
<testsuite name="Sunrise Stream Test Suite">
12+
<testsuite name="sunrise/stream">
513
<directory>./tests/</directory>
614
</testsuite>
715
</testsuites>
8-
<filter>
9-
<whitelist>
10-
<directory>./src</directory>
11-
</whitelist>
12-
</filter>
13-
<php>
14-
<const name="STREAM_FACTORY" value="Sunrise\Stream\StreamFactory"/>
15-
</php>
1616
</phpunit>

psalm.xml.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="1"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://getpsalm.org/schema/config"
6+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
7+
>
8+
<projectFiles>
9+
<directory name="src" />
10+
<ignoreFiles>
11+
<directory name="vendor" />
12+
</ignoreFiles>
13+
</projectFiles>
14+
15+
<issueHandlers>
16+
<DocblockTypeContradiction errorLevel="info" />
17+
</issueHandlers>
18+
</psalm>

0 commit comments

Comments
 (0)