[TwigBridge] Added compile-time issues checking in twig:lint command
Fix issue 9172
feature #10829 Fix issue 9172 (umpirsky)

This PR was squashed before being merged into the 2.3-dev branch (closes #10829).

Discussion
----------

Fix issue 9172

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9172
| License       | MIT

Commits
-------

25f1d85 Fix issue 9172
feature #10843 [TwigBridge] Added compile-time issues checking in twig:lint command (maxromanovsky)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[TwigBridge] Added compile-time issues checking in twig:lint command

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10019
| License       | MIT
|Doc PR	| none

Commits
-------

418cea1 [TwigBridge] Added compile-time issues checking in twig:lint command
[Debug] fix handling deprecated warnings and stacked errors turned into exceptions
bug #10854 [Debug] fix handling deprecated warnings and stacked errors turned into exceptions (nicolas-grekas)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Debug] fix handling deprecated warnings and stacked errors turned into exceptions

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

When no deprecation logger was registered, deprecated warnings were pretended to be handled (`return true`) when in fact there were just ignored. This is the first part fixed by this patch.
The second is in handleFatal(), when a stacked error was turned into an exception, this exception wasn't properly handled. Fixed also.

Commits
-------

95f3276 [Debug] fix handling deprecated warnings and stacked errors turned into exceptions
initial commit