Skip to content

DOCtor-RST against 3.4 #1

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

Merged
merged 1 commit into from
Aug 20, 2019
Merged

DOCtor-RST against 3.4 #1

merged 1 commit into from
Aug 20, 2019

Conversation

OskarStark
Copy link
Owner

No description provided.

@OskarStark OskarStark force-pushed the doctor-rst branch 11 times, most recently from 8389049 to 45409d0 Compare April 7, 2019 09:59
@OskarStark OskarStark force-pushed the doctor-rst branch 3 times, most recently from 8f8b30b to 8850ca8 Compare April 25, 2019 10:30
@OskarStark OskarStark changed the title Doctor rst DOCtor-RST against 3.4 Apr 25, 2019
@OskarStark OskarStark changed the title DOCtor-RST against 3.4 DOCtor-RST against 3.4 Apr 25, 2019
@OskarStark OskarStark force-pushed the doctor-rst branch 2 times, most recently from 45a18bd to 607d450 Compare April 26, 2019 07:41
@OskarStark OskarStark closed this Apr 26, 2019
@OskarStark OskarStark reopened this Apr 26, 2019
@OskarStark OskarStark force-pushed the doctor-rst branch 3 times, most recently from 1b75db5 to bd71828 Compare August 20, 2019 06:22
@OskarStark OskarStark merged commit f671fce into 3.4 Aug 20, 2019
OskarStark pushed a commit that referenced this pull request Mar 26, 2022
…ng a Service Locator" section (jbieliauskas)

This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix YAML example in "Defining a Service Locator" section

Using this example in `v5.3.13` gives this error:

```
Symfony\Component\DependencyInjection\Definition::setArguments(): Argument #1 ($arguments) must be of type array, Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument given, called in /project/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php on line 527
```

I assume this is because `!service_locator` is the first constructor argument but it's passed as an array of constructor arguments, in which case the example is not right.

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).

-->

Commits
-------

bd8b262 Fix YAML example in "Defining a Service Locator" section
OskarStark pushed a commit that referenced this pull request Jul 6, 2022
hello,

when running the example as it is, a deprecation message is shown (i'm on PHP 8.1.6). the deprecation message says that ``trim(): Passing null to parameter #1 ($string) of type string is deprecated``.
what if we add a normalizer that returns an empty string when the entered value is `null` otherwise returns the user's intial input.  with this suggestion, the example works great
OskarStark pushed a commit that referenced this pull request Jul 6, 2022
…1989)

This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Console] Update questionhelper.rst

hello,

when running the example as it is, a deprecation message is shown (i'm on PHP 8.1.6). the deprecation message says that ``trim(): Passing null to parameter #1 ($string) of type string is deprecated``.
what if we add a normalizer that returns an empty string when the entered value is `null` otherwise returns the user's intial input.  with this suggestion, the example works great

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).

-->

Commits
-------

bf9e245 Update questionhelper.rst
OskarStark pushed a commit that referenced this pull request Oct 24, 2023
- parameter $year is typed with integer. date function returns string. Code works but casting to the right type feels better.
- added missing import to fix TypeError "Argument #1 ($request) must be of type Request"
@OskarStark OskarStark deleted the doctor-rst branch December 7, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant