Skip to content

fix PHP 8+ warnings #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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