Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bea-autoloader.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Autoloader
Version: 1.0.3
Version: 1.0.4
Plugin URI: http://www.beapi.fr
Description: The autoloader class in order to load all plugins files
Author: BE API Technical team
Expand Down Expand Up @@ -91,7 +91,7 @@ class Autoloader {
*/
final public static function get_instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new static;
self::$instance = new static();
}

return self::$instance;
Expand Down Expand Up @@ -119,7 +119,7 @@ private function __clone() {
*
* @throws Exception
*/
final public function __wakeup() {
public function __wakeup(): void {
throw new \Exception( 'Cannot serialize singleton' );
}

Expand Down