Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix @throws DocBlock about LogicException #29699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Symfony/Component/BrowserKit/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getMaxRedirects()
*
* @param bool $insulated Whether to insulate the requests or not
*
* @throws \RuntimeException When Symfony Process Component is not installed
* @throws \LogicException When Symfony Process Component is not installed
*/
public function insulate($insulated = true)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Config/Util/XmlUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function __construct()
*
* @throws XmlParsingException When parsing of XML file returns error
* @throws InvalidXmlException When parsing of XML with schema or callable produces any errors unrelated to the XML parsing itself
* @throws \RuntimeException When DOM extension is missing
* @throws \LogicException When DOM extension is missing
*/
public static function parse($content, $schemaOrCallable = null)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Symfony/Component/Console/Command/LockableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ trait LockableTrait
* Locks a command.
*
* @return bool
*
* @throws LogicException when Symfony Lock Component is not installed
* or when a lock is already in place
*/
private function lock($name = null, $blocking = false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class YamlDumper extends Dumper
* Dumps the service container as an YAML string.
*
* @return string A YAML string representing of the service container
*
* @throws LogicException when Symfony Yaml Component is not installed
*/
public function dump(array $options = array())
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/DomCrawler/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ private function createSubCrawler($nodes)
}

/**
* @throws \RuntimeException If the CssSelector Component is not available
* @throws \LogicException If the CssSelector Component is not available
*/
private function createCssSelectorConverter(): CssSelectorConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function __construct(SymfonySerializerInterface $serializer = null, strin
$this->context = $context;
}

/**
* @throws LogicException when Symfony Serializer Component is not installed
*/
public static function create(): self
{
if (!class_exists(SymfonySerializer::class)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Process implements \IteratorAggregate
* @param mixed|null $input The input as stream resource, scalar or \Traversable, or null for no input
* @param int|float|null $timeout The timeout in seconds or null to disable
*
* @throws RuntimeException When proc_open is not installed
* @throws LogicException When proc_open is not installed
*/
public function __construct($command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/PropertyAccess/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ private function getPropertyPath($propertyPath): PropertyPath
*
* @return AdapterInterface
*
* @throws RuntimeException When the Cache Component isn't available
* @throws \LogicException When the Symfony Cache Component isn't available
*/
public static function createCache($namespace, $defaultLifetime, $version, LoggerInterface $logger = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
* @param string[]|null $mutatorPrefixes
* @param string[]|null $accessorPrefixes
* @param string[]|null $arrayMutatorPrefixes
*
* @throws \LogicException when "phpdocumentor/reflection-docblock" package is not installed
*/
public function __construct(DocBlockFactoryInterface $docBlockFactory = null, array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AnnotationFileLoader extends FileLoader
protected $loader;

/**
* @throws \RuntimeException
* @throws \LogicException when PHP Tokenizer extension is not installed
*/
public function __construct(FileLocatorInterface $locator, AnnotationClassLoader $loader)
{
Expand Down