config.neon – Unexpected ‘-’ on line

radm
Member | 7
+
0
-

Hello, please can you give me some tip what can be wrong,
getting error: "Unexpected ‘-’ on line 29, column 4|.

There are these lines in config.neon:

services:
   - App\Model\SessionData // is line 29
   - App\Components\OneTaskComponentFactory

After short experimenting I change tabs for (3) spaces but
no effect. The strange is that the project is running
on my laptop (interpreted by ‘php -S localhost:8000 -t’) but
not at the remote apache server. I realy don`t know what should
be wrong. Thanks for help.

nightfish
Member | 468
+
0
-

radm wrote:

Hello, please can you give me some tip what can be wrong,
getting error: "Unexpected ‘-’ on line 29, column 4|.

What happens when you try to paste your config file to NEON sandbox ? Does it get parsed without errors?

radm
Member | 7
+
0
-

nightfish wrote:

radm wrote:

Hello, please can you give me some tip what can be wrong,
getting error: "Unexpected ‘-’ on line 29, column 4|.

What happens when you try to paste your config file to NEON sandbox ? Does it get parsed without errors?

Ok, I found it. The password with special characters few lines before was bare (without apostrophes). Thanks for tool.