Fabien Potencier
9e6e700f96
minor #3509 Some code style fixes (dionisvl)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Some code style fixes
Fixes that:
- Type cast is unnecessary
- Unnecessary curly braces syntax for variable
- Operations priority might differ that except
Commits
-------
17c6371f Some code style fixes
2021-05-14 10:26:10 +02:00
Den
17c6371fb5
Some code style fixes
2021-05-14 10:26:05 +02:00
Fabien Potencier
13e360972a
Merge branch '2.x' into 3.x
...
* 2.x:
Fix CS
Fix CS
Migrate to the new PHP CS Fixer config file
Fixing links
2021-05-12 09:45:40 +02:00
Fabien Potencier
2dd1d909b9
Fix CS
2021-05-12 09:37:17 +02:00
Fabien Potencier
7759111e75
Merge branch '2.x' into 3.x
...
* 2.x:
Update CHANGELOG
Update CHANGELOG
Fix previous merge
Make round brackets optional for one argument tests like sameas
2020-08-23 14:22:39 +02:00
Fabien Potencier
9bf49d5ccf
Merge branch '1.x' into 2.x
...
* 1.x:
Update CHANGELOG
Fix previous merge
Make round brackets optional for one argument tests like sameas
2020-08-23 14:22:09 +02:00
Andreas
1ee72d9e15
Make round brackets optional for one argument tests like sameas
2020-08-23 14:16:31 +02:00
Fabien Potencier
f9ae0f8237
Merge branch '2.x' into 3.x
...
* 2.x:
Bump version
Bump version
Tweak docs
Update CHANGELOG
Support object init from variable
2020-08-23 14:02:58 +02:00
Fabien Potencier
77dcff7186
Merge branch '1.x' into 2.x
...
* 1.x:
Bump version
Tweak docs
Update CHANGELOG
Support object init from variable
2020-08-23 14:01:18 +02:00
Jérôme TAMARELLE
133edb3696
Support object init from variable
...
{a} is a shortcut for {a:a}
From ECMAScript 2015 syntax https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Object_initializer
2020-08-23 13:54:49 +02:00
Fabien Potencier
839b4f7744
Fix CS
2020-07-06 15:27:44 +02:00
Fabien Potencier
36141fafb2
Merge branch '1.x' into 2.x
...
* 1.x:
Unify code style
2020-07-06 15:27:15 +02:00
Jannik Zschiesche
38cb89c2bc
Unify code style
2020-07-06 14:57:49 +02:00
Fabien Potencier
8a6c47cbf2
Merge branch '2.x' into 3.x
...
* 2.x:
Allow trailing commas in macros + functions + filters
2020-07-06 14:00:03 +02:00
Fabien Potencier
865da858ae
Merge branch '1.x' into 2.x
...
* 1.x:
Allow trailing commas in macros + functions + filters
2020-07-06 13:59:53 +02:00
Jannik Zschiesche
ccc2dbb043
Allow trailing commas in macros + functions + filters
2020-07-06 13:58:05 +02:00
Fabien Potencier
e99363231b
Fix CS
2020-06-22 08:11:03 +02:00
Fabien Potencier
76352a037d
Merge branch '2.x' into 3.x
...
* 2.x:
Replace strtolower() with strtr() when dealing with method names
2020-01-08 09:32:39 +01:00
Fabien Potencier
04174b5f62
Merge branch '1.x' into 2.x
...
* 1.x:
Replace strtolower() with strtr() when dealing with method names
2020-01-08 09:32:31 +01:00
Matthias Pigulla
30feddef10
Replace strtolower() with strtr() when dealing with method names
2020-01-08 09:27:07 +01:00
Fabien Potencier
ad0a7b376f
Merge branch '2.x' into 3.x
...
* 2.x:
allowed string operators as variables names in assignments
2019-06-03 12:16:18 +02:00
Fabien Potencier
3fde1536d3
Merge branch '1.x' into 2.x
...
* 1.x:
allowed string operators as variables names in assignments
2019-06-03 12:15:17 +02:00
Fabien Potencier
5835c2344f
allowed string operators as variables names in assignments
2019-06-03 11:58:56 +02:00
Fabien Potencier
c191b7a184
Merge branch '2.x' into 3.x
...
* 2.x:
added support for macros on "is defined" tests
2019-05-17 18:56:16 +02:00
Fabien Potencier
9fe3213d1b
added support for macros on "is defined" tests
2019-05-17 18:04:15 +02:00
Fabien Potencier
3d1b9a11d8
Merge branch '2.x' into 3.x
...
* 2.x:
fixed CS
added the key to the map and filter filters
added support for iterators
removed fn in front of arrow functions
changed arrow syntax
added "filter", "map", and "reduce" filters
simplified code
fixed CS
bumped version to 2.10
bumped version to 1.41
fixed partial output leak when a PHP fatal error occurs
fixed markup in docs
2019-05-09 13:29:19 +02:00
Fabien Potencier
00966f434f
fixed CS
2019-05-09 13:27:48 +02:00
Fabien Potencier
5c484ce7eb
Merge branch '1.x' into 2.x
...
* 1.x:
added the key to the map and filter filters
added support for iterators
removed fn in front of arrow functions
changed arrow syntax
added "filter", "map", and "reduce" filters
simplified code
fixed CS
fixed partial output leak when a PHP fatal error occurs
2019-05-09 13:25:49 +02:00
Fabien Potencier
175041e01b
removed fn in front of arrow functions
2019-05-03 18:12:19 +02:00
Fabien Potencier
dc2776359c
changed arrow syntax
2019-05-03 17:09:12 +02:00
Fabien Potencier
b30bce1139
added "filter", "map", and "reduce" filters
2019-05-03 17:09:12 +02:00
Fabien Potencier
ababe1a430
simplified code
2019-05-03 15:44:36 +02:00
Fabien Potencier
54cec4e3b8
added type hints
2019-04-26 12:01:21 +02:00
Fabien Potencier
73f5b8115b
removed dead code
2019-04-23 18:36:23 +02:00
Fabien Potencier
592ab0376e
feature #2965 Change false to null to allow for type hinting (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Change false to null to allow for type hinting
Commits
-------
75333805 changed false to null to allow for type hinting
2019-04-23 18:34:47 +02:00
Fabien Potencier
7fb5fb4468
simplified code
2019-04-23 18:20:14 +02:00
Fabien Potencier
7533380596
changed false to null to allow for type hinting
2019-04-23 17:43:53 +02:00
Fabien Potencier
273b666a71
removed the obsolete lib/ directory, removed PSR-0 class aliases
2019-04-23 16:34:05 +02:00
Fabien Potencier
c844cdbe64
fixed CS
2019-04-03 16:07:17 +02:00
Fabien Potencier
241f95cb25
added some type hints on private methods
2019-03-16 13:24:59 +01:00
Fabien Potencier
3fbe43f965
fixed usage of ::class
2019-03-06 13:13:35 +01:00
Fabien Potencier
edb99c2e99
fixed typo
2019-03-05 13:46:34 +01:00
Fabien Potencier
037ee67224
switched to namespace first, PSR-0 as a fallback
2019-03-05 08:14:45 +01:00
Fabien Potencier
baa70287f5
switched to namespace first, PSR-0 as a fallback
2019-03-04 21:33:40 +01:00
Maxime Steinhausser
2c174e4015
Use class_exists instead of require
2017-06-05 23:42:50 +02:00
Nicolas Grekas
5420a5e3f8
Add the aliases
2017-05-25 08:32:07 +02:00
Nicolas Grekas
71af32b306
Add namespaced aliases
2017-05-24 10:12:32 +02:00