Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
S
soutien
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • LQDN Adminsys
  • soutien
  • Issues
  • #64

Closed
Open
Opened Nov 28, 2016 by okhin@okhin🚴Contributor

Error on the new SQL stuff

Connecting to: https://soutien.dev.laquadrature.net/perso give me the follwing error:

Argument 1 passed to LQDN\Finder\AddressFinder::findByUserId() must be an instance of LQDN\Finder\int, string given, called in /srv/soutien/soutien/app/Perso.php on line 61 and defined [...]

It seems there's an issue on the type of data received by the sanitized_form (which gives me an int) and what the Container is waiting for.

The incriminated line is:

$addresses = $f3->get('container')['address_finder']->findByUserId($data['id']);

$data is the result of a SQL Query, so data[id] is probably not casted the correct way.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: lqdn-interne/soutien#64