生成的UserRepository upgradePassword()方法中的错误

问题描述 投票:0回答:1

我已经使用php bin / console make:user创建了一个用户类,它自动创建了具有此方法的用户存储库,其中包含一个错误。有什么事吗一段时间后尝试重新哈希密码,可能会引起任何问题吗?

enter image description here

当我启动网站时,没有崩溃。目前看来工作正常。

symfony
1个回答
0
投票

您的PhpStorm配置为使用较早的PHP版本(PHP 7之前的版本),这就是为什么它在scalar类型声明时遇到问题的原因。有两种方法可以让PhpStorm知道您的项目需要哪个PHP版本。

  1. 与composer.json同步(当您在那里需要PHP ^ 7.0时enter image description here] >>
  2. 手动指定语言级别enter image description here
© www.soinside.com 2019 - 2024. All rights reserved.