⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
psa
/
phpMyAdmin
/
libraries
/
classes
/
Dbal
/
Edit File: TableName.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Dbal; use Stringable; use Webmozart\Assert\Assert; use Webmozart\Assert\InvalidArgumentException; /** * @psalm-immutable */ final class TableName implements Stringable { /** * @see https://dev.mysql.com/doc/refman/en/identifier-length.html * @see https://mariadb.com/kb/en/identifier-names/#maximum-length */ private const MAX_LENGTH = 64; /** * @var string * @psalm-var non-empty-string */ private $name; /** * @param mixed $name * * @throws InvalidArgumentException */ private function __construct($name) { Assert::stringNotEmpty($name); Assert::maxLength($name, self::MAX_LENGTH); Assert::notEndsWith($name, ' '); $this->name = $name; } /** * @param mixed $name * * @throws InvalidArgumentException */ public static function fromValue($name): self { return new self($name); } /** * @psalm-return non-empty-string */ public function getName(): string { return $this->name; } /** * @psalm-return non-empty-string */ public function __toString(): string { return $this->name; } }
Simpan