Alexander M. Turek
2050a6a1f5
Prefix all sprintf() calls
2024-06-20 17:52:34 +02:00
Wouter de Jong
975c11f6e5
[Components] Convert to native return types
2023-07-05 15:06:06 +02:00
Vincent Langlet
ec7df1c174
Throw Symfony OutOfBounds exception instead of default one
2023-03-31 12:58:16 +02:00
Wouter de Jong
da57429a94
Add void return types
2023-02-13 14:18:23 +01:00
Grégoire Pineau
8d2ebdb83c
[CS] Remove @inheritdoc PHPDoc
2022-08-25 17:27:04 +02:00
HypeMC
6981df1421
Make the ConstraintViolationInterface & ConstraintViolationListInterface stringable
2022-03-05 06:14:16 +01:00
Alexander M. Turek
bf869f52b3
Merge branch '5.4' into 6.0
...
* 5.4: (27 commits)
feat: add completion for DebugAutowiring search argument
[Routing] Add support for aliasing routes
[DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait`
Fix CS
[Console] Open CompleteCommand for custom outputs
[Intl] Update the ICU data to 70.1
[Messenger] Add completion for failed messages commands.
Fix tests
Fixing missing full_stack variable that's needed by toolbar.html.twig
[PropertyInfo] Bump phpstan/phpdoc-parser
[Security] Backport type fixes
[VarExporter] escape unicode chars involved in directionality
[Framework] Add completion to debug:container
[Messenger] Add completion to command messenger:consume
[Intl] Update the ICU data to 70.1
Fix more generic types
Default access_decision_manager.strategy option with merge.
Fix typos
Update validators.ca.xlf
Add missing Validator translations for Estonian
...
Signed-off-by: Alexander M. Turek <me@derrabus.de >
2021-11-04 18:14:40 +01:00
Alexander M. Turek
f7bee21af4
Merge branch '5.4' into 6.0
...
* 5.4:
[Console] Restore psr/log >= 3.0 conflict
[Security] Make the abstract Voter class implement CacheableVoterInterface
Add generic types to traversable implementations
[Security] Fix TypeError message
[Security] Fix deprecation layer
[FrameworkBundle] Add completion for workflow:dump
Fix cancel button
Fix misleading error on missing provider with authenticator manager
Don't limit retries of toolbar loading
2021-11-03 14:44:55 +01:00
Alexander M. Turek
215bb9b208
Fix more generic types
...
Signed-off-by: Alexander M. Turek <me@derrabus.de >
2021-11-03 14:16:59 +01:00
Alexander M. Turek
9ac7f2fae1
Add generic types to traversable implementations
2021-11-03 10:24:47 +01:00
Nicolas Grekas
f7d2ceb362
Cleanup more @return annotations
2021-08-17 16:20:01 +02:00
Nicolas Grekas
76dd623e84
Add return types - batch 6/n
2021-08-16 17:45:02 +02:00
Nicolas Grekas
281349e6b8
Merge branch '5.4' into 6.0
...
* 5.4:
More return type fixes (bis)
Cleanup `@return` annotations
2021-08-12 16:08:08 +02:00
Nicolas Grekas
8b1cebb946
Cleanup @return annotations
2021-08-12 11:55:17 +02:00
Alexander M. Turek
bf9033bdcb
Remove ReturnTypeWillChange
...
Signed-off-by: Alexander M. Turek <me@derrabus.de >
2021-08-10 20:37:35 +02:00
Alexander M. Turek
7de34467a0
Merge branch '5.4' into 6.0
...
* 5.4:
Fix return types for PHP 8.1
2021-08-04 23:30:37 +02:00
Alexander M. Turek
cb9ecee0a2
Merge branch '5.3' into 5.4
...
* 5.3:
Fix return types for PHP 8.1
2021-08-04 23:21:08 +02:00
Alexander M. Turek
19fe2b37ad
Merge branch '4.4' into 5.3
...
* 4.4:
Fix return types for PHP 8.1
2021-08-04 23:20:46 +02:00
Alexander M. Turek
5edfa62964
Fix return types for PHP 8.1
2021-08-04 22:31:23 +02:00
Nicolas Grekas
d6fc21b846
Merge branch '5.4' into 6.0
...
* 5.4:
[Cache] Add missing return type
[5.2] Add missing `@return` annotations
[4.4] Add missing `@return` annotations
Handle lock with long key
#42227 update phpdoc to recommend createIndex over ensureIndex
2021-07-23 18:02:39 +02:00
Nicolas Grekas
5a143aafa2
Merge branch '5.3' into 5.4
...
* 5.3:
[Cache] Add missing return type
[5.2] Add missing `@return` annotations
[4.4] Add missing `@return` annotations
Handle lock with long key
#42227 update phpdoc to recommend createIndex over ensureIndex
2021-07-23 17:55:57 +02:00
Nicolas Grekas
9847bfd840
Merge branch '4.4' into 5.2
...
* 4.4:
[4.4] Add missing `@return` annotations
Handle lock with long key
2021-07-23 17:54:19 +02:00
Nicolas Grekas
20a30d8d74
[4.4] Add missing @return annotations
2021-07-23 17:41:52 +02:00
Alexander M. Turek
3796054fd8
[Validator] Add types to private properties
2021-07-15 23:41:15 +02:00
Nicolas Grekas
a6f6cb1e20
Merge branch '5.4' into 6.0
...
* 5.4: (21 commits)
Backport type fixes
[Messenger] Added StopWorkerException
[Workflown] Add support for getting updated context after a transition
Fix CS
fix annot
Backport type fixes
Fix CS
Avoid triggering the autoloader in Deprecation::isLegacy()
fix markdown markup
Backport type fixes
[TwigBundle] Improve comment on error silencing
[SecurityBundle] Fix wrongly inverted condition
[Notifier] Add MessageMedia Bridge
uzb translation
[DependencyInjection] Fix doc blocks
[DependencyInjection] Turn $defaultDeprecationTemplate into a constant
[SecurityBundle] Hide Security item if no firewall matched
[GHA] restore phpunit-bridge job
rethrow caught exception
[Form] better form doc types to support static analysis
...
2021-07-03 11:26:52 +02:00
Nicolas Grekas
17429ee1bb
[Validator] Add union types
2021-06-01 19:01:01 +02:00
Nicolas Grekas
139d4b897f
Add return type to __toString()
2021-05-28 17:52:26 +02:00
Grégoire Pineau
70f8c7a7bb
[Validator] Add support for ConstraintViolationList::createFromMessage()
2021-05-10 11:49:50 +02:00
Nicolas Grekas
37d810eadc
Merge branch '4.4'
...
* 4.4:
Add return types to internal & magic methods when possible
fixed CSC
Add Address::fromString
[DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml()
2019-08-22 15:39:30 +02:00
Nicolas Grekas
95b6690a9d
Add return types to internal & magic methods when possible
2019-08-22 15:18:41 +02:00
Christian Flothmann
5689a33f96
add parameter type hints to the Validator component
2019-06-28 18:24:33 +02:00
Fabien Potencier
266273eba7
switched array() to []
2019-01-16 10:39:14 +01:00
Nicolas Grekas
c5e8cf0e8e
Merge branch '2.8' into 3.4
...
* 2.8:
Fix Clidumper tests
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
Apply fixers
Disable the native_constant_invocation fixer until it can be scoped
Update the list of excluded files for the CS fixer
2018-07-26 10:45:46 +02:00
Christophe Coevoet
ebd4ea7fab
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
2018-07-24 12:05:38 +02:00
Fabien Potencier
53980fd2be
fixed CS
2017-09-11 14:23:01 -07:00
Konstantin.Myakshin
d2d0a66588
Add ability retrieve errors by their code.
2016-09-24 23:11:34 +03:00
Fabien Potencier
fdc2a7f02d
removed dots at the end of @param and @return
2016-06-28 08:24:06 +02:00
Daniel Espendiller
9870c739b7
add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support
2016-06-17 14:42:34 +02:00
Fabien Potencier
13113877ad
made {@inheritdoc} annotations consistent across the board
2014-04-16 09:04:20 +02:00
Dariusz Górecki
4667a46338
[CS Fix] Consistent coding-style of concatenation operator usage
2013-04-02 10:39:57 +01:00
Bernhard Schussek
a7a50fcb4f
[Validator] Refactored the GraphWalker into an implementation of the Visitor design pattern.
...
With this refactoring comes a decoupling of the validator from the structure of
the underlying metadata. This way it is possible for Drupal to use the validator
for validating their Entity API by using their own metadata layer, which is not
modeled as classes and properties/getter methods.
2012-11-24 13:00:28 +01:00
Tiago Ribeiro
4ceed538d0
Removed extra new line
2012-07-10 01:10:06 +02:00
Bernhard Schussek
02e02b7149
[Form] Allowed native framework errors to be mapped as well
2012-05-22 09:30:21 +02:00
Bernhard Schussek
d7cb249094
[Validator] Deprecated ConstraintValidator methods setMessage(), getMessageTemplate() and getMessageParameters()
...
Had to refactor the validation tests at the same time and fixed various small bugs while doing so.
2012-02-01 14:03:13 +01:00
Bernhard Schussek
4109949003
[Validator] Made ExecutionContext immutable and introduced new class GlobalExecutionContext
...
A new ExecutionContext is now created everytime that GraphWalker::walkConstraint() is
launched. Because of this, a validator B launched from within a validator A can't break
A anymore by changing the context.
Because we have a new ExecutionContext for every constraint validation, there is no point
in modifying its state anymore. Because of this it is now immutable.
2012-01-31 21:35:48 +01:00
Bernhard Schussek
626964f98a
[Form] Fixed typos
2012-01-31 07:45:20 +01:00
Bernhard Schussek
33745aca3a
Fixed string access by curly brace to bracket
...
This seems to be the version officially favored by PHP:
http://www.php.net/manual/en/language.types.string.php#language.types.string.substr
2012-01-31 07:39:54 +01:00
Bernhard Schussek
1dcf1907e1
[Validator] Fixed: GraphWalker does not add constraint violation if error message is empty
2012-01-30 20:56:10 +01:00
Bernhard Schussek
0b9b33e91a
[Validator] Fixed ConstraintViolationList::__toString() to not include dots in the output if the root is empty
2012-01-30 18:43:47 +01:00
Fabien Potencier
be4f2a0422
[Validator] tagged the public @api
2011-07-20 10:37:57 +02:00