Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/vendor/illuminate/container/Illuminate/Container/Container.php on line 780

Deprecated: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/vendor/illuminate/container/Illuminate/Container/Container.php on line 791

Deprecated: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/vendor/illuminate/container/Illuminate/Container/Container.php on line 803

Deprecated: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/vendor/illuminate/container/Illuminate/Container/Container.php on line 825

Deprecated: Return type of Hazzard\Config\Repository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/src/Hazzard/Config/Repository.php on line 142

Deprecated: Return type of Hazzard\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/src/Hazzard/Config/Repository.php on line 153

Deprecated: Return type of Hazzard\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/hitlokd/www/membres2/src/Hazzard/Config/Repository.php on line 165
Whoops! There was an error.
6. ArgumentCountError
…/­src/­Hazzard/­Foundation/­Application.php138
5. array_first
…/­src/­Hazzard/­Foundation/­Application.php138
4. Hazzard\Foundation\Application getRegistered
…/­src/­Hazzard/­Foundation/­Application.php109
3. Hazzard\Foundation\Application register
…/­src/­Hazzard/­Foundation/­ProviderRepository.php39
2. Hazzard\Foundation\ProviderRepository load
…/­app/­init.php146
1. require_once
/­home/­hitlokd/­www/­includes/­menu-compositeur.php8
0. include
/­home/­hitlokd/­www/­compositeur.php10

ArgumentCountError

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
ArgumentCountError thrown with message "array_first() expects exactly 1 argument, 2 given" Stacktrace: #6 ArgumentCountError in /home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php:138 #5 array_first in /home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php:138 #4 Hazzard\Foundation\Application:getRegistered in /home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php:109 #3 Hazzard\Foundation\Application:register in /home/hitlokd/www/membres2/src/Hazzard/Foundation/ProviderRepository.php:39 #2 Hazzard\Foundation\ProviderRepository:load in /home/hitlokd/www/membres2/app/init.php:146 #1 require_once in /home/hitlokd/www/includes/menu-compositeur.php:8 #0 include in /home/hitlokd/www/compositeur.php:10

array_first() expects exactly 1 argument, 2 given

/home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php
	 * @return \Hazzard\Support\ServiceProvider|null
	 */
	public function getRegistered($provider)
	{
		$name = is_string($provider) ? $provider : get_class($provider);
 
		if (array_key_exists($name, $this->loadedProviders)) {
			return array_first($this->serviceProviders, function($key, $value) use ($name) {
				return get_class($value) == $name;
			});
/home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php
	 * @return \Hazzard\Support\ServiceProvider|null
	 */
	public function getRegistered($provider)
	{
		$name = is_string($provider) ? $provider : get_class($provider);
 
		if (array_key_exists($name, $this->loadedProviders)) {
			return array_first($this->serviceProviders, function($key, $value) use ($name) {
				return get_class($value) == $name;
			});
/home/hitlokd/www/membres2/src/Hazzard/Foundation/Application.php
	 * @param  \Hazzard\Support\ServiceProvider|string  $provider
	 * @param  array  $options
	 * @param  bool  $force
	 * @return \Hazzard\Support\ServiceProvider
	 */
	public function register($provider, $options = array(), $force = false)
	{
		if ($registered = $this->getRegistered($provider) && !$force)
			return $registered;
 
/home/hitlokd/www/membres2/src/Hazzard/Foundation/ProviderRepository.php
		$manifest = $this->loadManifest();
 
		if ($this->shouldRecompile($manifest, $providers)) {
			$manifest = $this->compileManifest($app, $providers);
		}
 
		foreach ($manifest['eager'] as $provider) {
			$app->register($this->createProvider($app, $provider));
		}
 
/home/hitlokd/www/membres2/app/init.php
|--------------------------------------------------------------------------
| Register The Core Service Providers
|--------------------------------------------------------------------------
*/
 
$providers = $config['providers'];
 
$app->getProviderRepository()->load($app, $providers);
 
/*
/home/hitlokd/www/includes/menu-compositeur.php
<?php 
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
include("db.php");
include("init.php");
require_once 'membres2/app/init.php';
 
?>
/home/hitlokd/www/compositeur.php
<?php 
require_once "includes/db.php";
include("includes/functions.php");
include("includes/head.php");
?>
<body data-bs-spy="scroll" data-bs-target="#navbarExample" class=" bg-gray">
<?php 
include("includes/menu-compositeur.php");
 
    if(isset($_GET) && isset($_GET['u']) && !empty($_GET['u']))
Key Value
u willy-reine
empty
empty
empty
empty
Key Value
USER hitlokd
SCRIPT_NAME /compositeur.php
REQUEST_URI /compositeur.php?u=willy-reine
QUERY_STRING u=willy-reine
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 42766
SCRIPT_FILENAME /home/hitlokd/www/compositeur.php
SERVER_ADMIN postmaster@hit-lokal.com
REMOTE_ADDR 216.73.216.31
SERVER_PORT 443
SERVER_ADDR 10.127.20.20
SERVER_NAME hit-lokal.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.31
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID b8a0414575d81cac4d264642401e0595
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.31
HTTP_X_PREDICTOR 1
HTTP_HOST hit-lokal.com
PHP_VER 8.0
CFG_CLUSTER cluster127
HTTPS on
SCRIPT_URI https://hit-lokal.com:443/compositeur.php
SCRIPT_URL /compositeur.php
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aRmfaaptclSlWSIuMdBXtAAAAmg
DOCUMENT_ROOT /home/hitlokd/www
ENVIRONMENT development
APP_ENGINE_VERSION 8.5
APP_ENGINE php
FCGI_ROLE RESPONDER
PHP_SELF /compositeur.php
REQUEST_TIME_FLOAT 1763286889.4483
REQUEST_TIME 1763286889
argv Array ( [0] => u=willy-reine )
argc 1
Key Value
USER hitlokd
SCRIPT_NAME /compositeur.php
REQUEST_URI /compositeur.php?u=willy-reine
QUERY_STRING u=willy-reine
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 42766
SCRIPT_FILENAME /home/hitlokd/www/compositeur.php
SERVER_ADMIN postmaster@hit-lokal.com
REMOTE_ADDR 216.73.216.31
SERVER_PORT 443
SERVER_ADDR 10.127.20.20
SERVER_NAME hit-lokal.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.31
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID b8a0414575d81cac4d264642401e0595
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.31
HTTP_X_PREDICTOR 1
HTTP_HOST hit-lokal.com
PHP_VER 8.0
CFG_CLUSTER cluster127
HTTPS on
SCRIPT_URI https://hit-lokal.com:443/compositeur.php
SCRIPT_URL /compositeur.php
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aRmfaaptclSlWSIuMdBXtAAAAmg
DOCUMENT_ROOT /home/hitlokd/www
ENVIRONMENT development
APP_ENGINE_VERSION 8.5
APP_ENGINE php
FCGI_ROLE RESPONDER
PHP_SELF /compositeur.php
REQUEST_TIME_FLOAT 1763286889.4483
REQUEST_TIME 1763286889
argv Array ( [0] => u=willy-reine )
argc 1
0. Whoops\Handler\PrettyPageHandler