salut
j'ai un petit probleme avec ma fabrique de singleton
voici l'erreur
Declaration of FileSysteme::Singleton() should be compatible with that of SingletonFactory::Singleton() in E:\parser\FileSysteme.class.php
class SingletonFactory
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
abstract class SingletonFactory
{
	private static $_instance = array();
 
	protected function __construct(){}
 
	protected static function Singleton($instace_id = null){
		if(!isset(self::$_instance[$instance_id])){
			if(!class_exists($instance_id)){
				return false;
			}
			self::$instance[$instance_id] = new $instance_id();
		}
		return self::$_instance[$instance_id];
	}
}
et FileSystem
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
public static final function Singleton(){
		return parent::Singleton(__CLASS__);
	}
je vois pas l'erreur
merci