Skip to content

Commit fe33a60

Browse files
authored
v3.6 (#4)
* Bumped up PHP version to 8.1 * Added intersection types + Updated dependencies * Updated type for Container::getIterator() * Removed PSR factories check from constructor * Removed HttpFactory::isPsr17Factory() + related code and tests * Removed unused dependencies * Updated copyright notice * Made consts final * Added mixed data type * Code sniffer autofixes * Fixed docblock * Updated PHP version * Added libargon2 dependency * Removed libargon2; Added trusty dist * Reverted to normal dist * Updated to bionic dist
1 parent bf742b2 commit fe33a60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+121
-125
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
dist: bionic
2+
13
cache:
24
apt: true
35
directories:
@@ -6,7 +8,7 @@ cache:
68
language: php
79

810
php:
9-
- 8.0.0
11+
- 8.1.0
1012

1113
env:
1214
- XDEBUG_MODE=coverage

LICENSE.md

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

3-
### Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
3+
### Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Also, please note the following prerequisites:
2424

2525
### Prerequisites
2626

27-
1. PHP 8.0+;
27+
1. PHP 8.1+;
2828
2. Server with URL Rewriting (such as Apache, Nginx, etc.).
2929

3030
### 1. Setup Your Environment

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=8.0",
13+
"php": ">=8.1",
1414
"ext-json": "*",
15-
"psr/container": "^1.0",
16-
"psr/http-server-middleware": "~1.0"
15+
"psr/container": "^2.0",
16+
"psr/http-message": "^1.0",
17+
"php-http/message-factory": "^1.0",
18+
"psr/http-server-middleware": "^1.0"
1719
},
1820
"require-dev": {
1921
"phpunit/phpunit": "^9.5",

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

src/Container.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

@@ -15,6 +15,7 @@
1515
use ArrayAccess;
1616
use IteratorAggregate;
1717
use SplObjectStorage;
18+
use Traversable;
1819
use Psr\Container\ContainerInterface;
1920
use BitFrame\Exception\{ContainerItemNotFoundException, ContainerItemFrozenException};
2021
use TypeError;
@@ -176,11 +177,11 @@ public function get($id)
176177
/**
177178
* {@inheritdoc}
178179
*
179-
* @return iterable
180+
* @return Traversable
180181
*
181182
* @see IteratorAggregate::getIterator()
182183
*/
183-
public function getIterator(): iterable
184+
public function getIterator(): Traversable
184185
{
185186
foreach ($this->bag as $key => $value) {
186187
yield $key => $value;

src/Emitter/AbstractSapiEmitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

src/Emitter/SapiEmitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

src/Emitter/SapiStreamEmitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

src/Exception/ContainerItemFrozenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BitFrame Framework (https://www.bitframephp.com)
55
*
66
* @author Daniyal Hamid
7-
* @copyright Copyright (c) 2017-2021 Daniyal Hamid (https://designcise.com)
7+
* @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com)
88
* @license https://bitframephp.com/about/license MIT License
99
*/
1010

0 commit comments

Comments
 (0)