Skip to content

Commit b289c50

Browse files
committed
Release version 4.0.0
1 parent b253e05 commit b289c50

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed

CHANGELOG.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
# CHANGELOG
22

3+
## 4.0.0 (released 2018-02-11)
4+
5+
- Added Laravel 5.6 support
6+
- Added void return types
7+
- Fixed config when inside phar
8+
- Removed Laravel 5.5 support
9+
- Removed PHP 7.0 support
10+
311
## 3.3.0 (released 2017-09-02)
412

5-
- Removed laravel 5.3 and 5.4 support
13+
- Removed Laravel 5.3 and 5.4 support
614

715
## 3.2.0 (released 2017-08-07)
816

9-
- Added laravel 5.5 support
17+
- Added Laravel 5.5 support
1018

1119
## 3.1.0 (released 2017-01-01)
1220

13-
- Added laravel 5.4 support
21+
- Added Laravel 5.4 support
1422
- Dropped php 5.6 support
1523

1624
## 3.0.0 (released 2016-11-15)
@@ -23,7 +31,7 @@
2331

2432
## 2.3.0 (released 2016-05-05)
2533

26-
- Added laravel 5.3 support
34+
- Added Laravel 5.3 support
2735

2836
## 2.2.2 (released 2016-01-30)
2937

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ App::make('Foo')->bar();
134134

135135
## Documentation
136136

137-
There are other classes in this package that are not documented here. This is because the package is a Laravel wrapper of [Ivan Akimov's](https://github.com/ivanakimov) [Hashids package](https://github.com/ivanakimov/hashids.php).
137+
There are other classes in this package that are not documented here. This is because the package is a Laravel wrapper of [Ivan Akimov's](https://github.com/ivanakimov) [Hashids package](https://github.com/ivanakimov/hashids.php#readme).
138138

139139
## License
140140

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
],
1313
"require": {
1414
"php": "^7.1.3",
15-
"graham-campbell/manager": "^3.0",
15+
"graham-campbell/manager": "^4.0",
1616
"hashids/hashids": "^2.0",
17-
"illuminate/contracts": "5.5.*",
18-
"illuminate/support": "5.5.*"
17+
"illuminate/contracts": "5.6.*",
18+
"illuminate/support": "5.6.*"
1919
},
2020
"require-dev": {
2121
"graham-campbell/analyzer": "^2.0",
2222
"graham-campbell/testbench": "^5.0",
2323
"mockery/mockery": "^1.0",
24-
"phpunit/phpunit": "^6.5"
24+
"phpunit/phpunit": "^7.0"
2525
},
2626
"autoload": {
2727
"psr-4": {
@@ -38,7 +38,7 @@
3838
},
3939
"extra": {
4040
"branch-alias": {
41-
"dev-master": "3.4-dev"
41+
"dev-master": "4.0-dev"
4242
},
4343
"laravel": {
4444
"providers": [

src/HashidsManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HashidsManager extends AbstractManager
2929
*
3030
* @var \Vinkla\Hashids\HashidsFactory
3131
*/
32-
private $factory;
32+
protected $factory;
3333

3434
/**
3535
* Create a new Hashids manager instance.

src/HashidsServiceProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class HashidsServiceProvider extends ServiceProvider
3131
*
3232
* @return void
3333
*/
34-
public function boot()
34+
public function boot(): void
3535
{
3636
$this->setupConfig();
3737
}
@@ -41,7 +41,7 @@ public function boot()
4141
*
4242
* @return void
4343
*/
44-
protected function setupConfig()
44+
protected function setupConfig(): void
4545
{
4646
$source = realpath($raw = __DIR__.'/../config/hashids.php') ?: $raw;
4747

@@ -59,7 +59,7 @@ protected function setupConfig()
5959
*
6060
* @return void
6161
*/
62-
public function register()
62+
public function register(): void
6363
{
6464
$this->registerFactory();
6565
$this->registerManager();
@@ -71,7 +71,7 @@ public function register()
7171
*
7272
* @return void
7373
*/
74-
protected function registerFactory()
74+
protected function registerFactory(): void
7575
{
7676
$this->app->singleton('hashids.factory', function () {
7777
return new HashidsFactory();
@@ -85,7 +85,7 @@ protected function registerFactory()
8585
*
8686
* @return void
8787
*/
88-
protected function registerManager()
88+
protected function registerManager(): void
8989
{
9090
$this->app->singleton('hashids', function (Container $app) {
9191
$config = $app['config'];
@@ -102,7 +102,7 @@ protected function registerManager()
102102
*
103103
* @return void
104104
*/
105-
protected function registerBindings()
105+
protected function registerBindings(): void
106106
{
107107
$this->app->bind('hashids.connection', function (Container $app) {
108108
$manager = $app['hashids'];

0 commit comments

Comments
 (0)