Skip to content

Commit

Permalink
Merge branch '6.2' into 6.3
Browse files Browse the repository at this point in the history
* 6.2:
  fix style of label containing new lines in PUML dump
  [TwigBridge] Allow floats in html5 input type number field
  [Translation] Handle the translation of empty strings
  [VarDumper] Fix error when reflected class has default Enum parameter in constructor
  [FrameworkBundle] Fix denyAccessUnlessGranted for mixed attributes
  [Validator] Fix translation of AtLeastOneOf constraint message
  do not drop embed label classes
  [Validator] Sync IBAN formats with Swift IBAN registry
  Update Infobip API transport to use the API V3
  [String] Use same alphabet for ByteString::fromRandom tests
  Fix phpdocs in components
  Fix the rendering of query explanation with Postgresql
  • Loading branch information
nicolas-grekas committed Feb 24, 2023
2 parents 4c9dc4d + cf8d4ca commit 5519cc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Caster/Caster.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function castObject(object $obj, string $class, bool $hasDebugInfo
* @param array $a The array containing the properties to filter
* @param int $filter A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out
* @param string[] $listedProperties List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set
* @param int &$count Set to the number of removed properties
* @param int|null &$count Set to the number of removed properties
*/
public static function filter(array $a, int $filter, array $listedProperties = [], ?int &$count = 0): array
{
Expand Down
2 changes: 1 addition & 1 deletion Caster/ReflectionCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public static function castParameter(\ReflectionParameter $c, array $a, Stub $st
if ($c->isOptional()) {
try {
$a[$prefix.'default'] = $v = $c->getDefaultValue();
if ($c->isDefaultValueConstant()) {
if ($c->isDefaultValueConstant() && !\is_object($v)) {
$a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v);
}
if (null === $v) {
Expand Down

0 comments on commit 5519cc7

Please sign in to comment.