Skip to content
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

Validator behaviors fail #1526

Open
crossan007 opened this issue Nov 15, 2019 · 2 comments
Open

Validator behaviors fail #1526

crossan007 opened this issue Nov 15, 2019 · 2 comments
Labels

Comments

@crossan007
Copy link
Contributor

After a recent composer update, my Propel2 validation behaviors began failing.

Error message given include:

In Inline.php line 450:
                                                                                                                                                                 
  Colons must be followed by a space or an indication character (i.e. " ", ",", "[", "]", "{", "}") at line 1 (near "{column: per_firstname, validator: Length   
  , options: {min:2, max: 50}}").                                                                                                                                
                       
In Inline.php line 450:
                                                                                                                                                                 
  Colons must be followed by a space or an indication character (i.e. " ", ",", "[", "]", "{", "}") at line 1 (near "{column: linkname, validator: Length, opt   
  ions: {min:2, max: 50}}").

It looks like symfony/yaml updated (since it's not specified in Propel2's composer.json file) from 3.4.35 to 4.3.8, which introduced a breaking change to Propel2's reliance on it for the validate behavior.

I resolved it by specifying "symfony/yaml":"^3.4" in my project's composer.json.

@dereuromark
Copy link
Contributor

This will be interesting for #1578
//cc @Incognito

@Incognito
Copy link
Contributor

I've seen some issues with yaml 3.0->3.3, I'll check deeper into it.

Do you have an example of the smallest amount of code I can use to reproduce this? It would help if you shared your composer.json and php version also.

@dereuromark dereuromark added the Bug label Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants