Raised PHP requirement to 7.1 and updated types.

Fixes #25
This commit is contained in:
Andrey Savchenko committed 2018-11-30 13:58:53 +02:00
1 parent cd55061e69
commit 204c1df755
29 files changed
+115 -75

No files matched your search

+4 -3
View File
@@ -1,4 +1,5 @@
<?php
declare( strict_types=1 );
namespace Rarst\Laps;
@@ -48,7 +49,7 @@ class Plugin extends Container {
*
* @return $this|static
*/
public function register( ServiceProviderInterface $provider, array $values = [] ) {
public function register( ServiceProviderInterface $provider, array $values = [] ): self {
$this->providers[] = $provider;
@@ -60,9 +61,9 @@ class Plugin extends Container {
/**
* Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
*/
public function run() {
public function run(): void {
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
if ( \defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}