Skip to content

Commit

Permalink
MISC for core
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Dec 14, 2024
1 parent 795ea9b commit 674f0f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions packages/database/src/Driver/Pdo/DsnHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
class DsnHelper
{
/**
* extractDsn
*
* @param string $dsn
* @param string $dsn
* @param string|null $type
*
* @return array
*/
public static function extract(string $dsn): array
public static function extract(string $dsn, ?string &$type = null): array
{
if (str_contains($dsn, ':')) {
[$type, $dsn] = explode(':', $dsn);
}

// Parse DSN to array
$dsn = str_replace(';', "\n", $dsn);

Expand Down
4 changes: 2 additions & 2 deletions packages/database/src/Manager/AbstractMetaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
abstract class AbstractMetaManager
{
/**
* @var string
* @var ?string
*/
protected ?string $name = null;

Expand Down Expand Up @@ -43,7 +43,7 @@ public function getDb(): DatabaseAdapter
}

/**
* @return string
* @return ?string
*/
public function getName(): ?string
{
Expand Down
3 changes: 2 additions & 1 deletion packages/dom/src/HTMLFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
* @method static DOMElement form(array $attrs = [], $content = null)
* @method static DOMElement input(array $attrs = [], $content = null)
* @method static DOMElement button(array $attrs = [], $content = null)
*
* @deprecated Use HTML5Factory instead.
*/
#[\Deprecated(message: 'Use HTML5Factory instead.', since: '4.2')]
class HTMLFactory extends DOMFactory
{
public const TEXT_SPAN = 1 << 0;
Expand Down

0 comments on commit 674f0f5

Please sign in to comment.