Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Drop php 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Dec 30, 2016
1 parent b9cf9fa commit fc92d1a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 5.6
- 7.0
- 7.1

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": "^5.6.4 || ^7.0",
"php": "^7.0",
"illuminate/contracts": "5.3.* || 5.4.*",
"illuminate/support": "5.3.* || 5.4.*",
"graham-campbell/manager": "^2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/GitLab.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GitLab extends Facade
*
* @return string
*/
protected static function getFacadeAccessor()
protected static function getFacadeAccessor(): string
{
return 'gitlab';
}
Expand Down
8 changes: 4 additions & 4 deletions src/GitLabFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GitLabFactory
*
* @return \Gitlab\Client
*/
public function make(array $config)
public function make(array $config): Client
{
$config = $this->getConfig($config);

Expand All @@ -42,9 +42,9 @@ public function make(array $config)
*
* @throws \InvalidArgumentException
*
* @return string
* @return array
*/
protected function getConfig(array $config)
protected function getConfig(array $config): array
{
$keys = ['token', 'base_url'];

Expand All @@ -64,7 +64,7 @@ protected function getConfig(array $config)
*
* @return \Gitlab\Client
*/
protected function getClient(array $config)
protected function getClient(array $config): Client
{
$client = new Client($config['base_url']);

Expand Down
9 changes: 5 additions & 4 deletions src/GitLabManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Vinkla\GitLab;

use Gitlab\Client;
use GrahamCampbell\Manager\AbstractManager;
use Illuminate\Contracts\Config\Repository;

Expand Down Expand Up @@ -64,9 +65,9 @@ public function __construct(Repository $config, GitLabFactory $factory)
*
* @param array $config
*
* @return mixed
* @return \Gitlab\Client
*/
protected function createConnection(array $config)
protected function createConnection(array $config): Client
{
return $this->factory->make($config);
}
Expand All @@ -76,7 +77,7 @@ protected function createConnection(array $config)
*
* @return string
*/
protected function getConfigName()
protected function getConfigName(): string
{
return 'gitlab';
}
Expand All @@ -86,7 +87,7 @@ protected function getConfigName()
*
* @return \Vinkla\GitLab\GitLabFactory
*/
public function getFactory()
public function getFactory(): GitLabFactory
{
return $this->factory;
}
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function registerBindings()
*
* @return string[]
*/
public function provides()
public function provides(): array
{
return [
'gitlab',
Expand Down

0 comments on commit fc92d1a

Please sign in to comment.