Skip to content

Commit

Permalink
Optimized phpdoc for @deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Oct 24, 2024
1 parent 7abaadd commit f0e29fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/SwitchManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace FriendsOfHyperf\Telescope;

/**
* @deprecated use FriendsOfHyperf\Telescope\TelescopeConfig instead
* @deprecated since v3.1, use FriendsOfHyperf\Telescope\TelescopeConfig instead, will be removed in v3.2
*/
class SwitchManager extends TelescopeConfig
{
Expand Down
2 changes: 1 addition & 1 deletion src/Telescope.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function recordClientRequest(IncomingEntry $entry): void
}

/**
* @deprecated the method has been deprecated and its usage is discouraged
* @deprecated since v3.1, the method has been deprecated and its usage is discouraged, will be removed in v3.2
*/
public static function getAppName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions src/TelescopeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ public function isServerEnable(): bool
}

/**
* @deprecated since v3.1, will remove in v3.2
* @deprecated since v3.1, will be removed in v3.2
*/
public function getServerHost(): string
{
return (string) ($this->getServerOptions()['host'] ?: '0.0.0.0');
}

/**
* @deprecated since v3.1, will remove in v3.2
* @deprecated since v3.1, will be removed in v3.2
*/
public function getServerPort(): int
{
Expand Down
4 changes: 2 additions & 2 deletions src/TelescopeContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ public static function getSubBatchId(): ?string
}

/**
* @deprecated the method has been deprecated and its usage is discouraged
* @deprecated since v3.1, the method has been deprecated and its usage is discouraged, will be removed in v3.2
*/
public static function setCachePacker(PackerInterface $packer): void
{
Context::set(self::CACHE_PACKER, $packer);
}

/**
* @deprecated the method has been deprecated and its usage is discouraged
* @deprecated since v3.1, the method has been deprecated and its usage is discouraged, will be removed in v3.2
*/
public static function getCachePacker(): ?PackerInterface
{
Expand Down

0 comments on commit f0e29fd

Please sign in to comment.