From 5e41bea598ff38b3c520b69fd92ee3412e716df2 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 9 Sep 2025 15:37:50 +0200 Subject: =?UTF-8?q?fin=20de=20l'utilisation=20du=20champ=20article=5Ftimes?= =?UTF-8?q?tamp=20de=20la=20table=20node,=20r=C3=A9solue=20erreur=20lorsqu?= =?UTF-8?q?e=20deux=20news=20sont=20cr=C3=A9=C3=A9es=20dans=20la=20m=C3=AA?= =?UTF-8?q?me=20minute=20(pas=20dans=20la=20m=C3=AAme=20seconde=20par=20co?= =?UTF-8?q?ntre)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/URL.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/URL.php') diff --git a/src/URL.php b/src/URL.php index 689332f..a6d6379 100644 --- a/src/URL.php +++ b/src/URL.php @@ -12,6 +12,13 @@ class URL implements Stringable private array $params; private string $anchor = ''; + public function __construct(array $gets = [], string $anchor = ''){ + $this->params = $gets; + if($anchor != ''){ + $this->setAnchor($anchor); + } + } + // setters statiques static public function setProtocol(string $protocol = 'http'): void { @@ -39,14 +46,7 @@ class URL implements Stringable { self::$path = '/' . ltrim($path, '/'); } - - public function __construct(array $gets = [], string $anchor = ''){ - $this->params = $gets; - if($anchor != ''){ - $this->setAnchor($anchor); - } - } - + //setters normaux public function addParams(array $gets): void { -- cgit v1.2.3