-
Notifications
You must be signed in to change notification settings - Fork 9
Upgrade to Laravel 12 and PHP 8.2+ with improved type hints #41
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ public function rules(): array | |
| public function createSquidAllowedIp() : SquidAllowedIp | ||
| { | ||
| $squidAllowedIp = new SquidAllowedIp($this->validated()); | ||
| $squidAllowedIp->user_id = $this->route()->parameter('user_id'); | ||
| $squidAllowedIp->user_id = (int) $this->route()->parameter('user_id'); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
echo "== route definitions mentioning user_id =="
fd -t f . routes | xargs -r rg -n -C2 "user_id|whereNumber|Route::"
echo
echo "== request files using route()->parameter('user_id') =="
fd -t f 'CreateRequest.php' app/Http/Requests | xargs -r rg -n -C2 "route\(\)->parameter\('user_id'\)|\(int\)\s*\$this->route\(\)->parameter\('user_id'\)"Repository: 39ff/squid-db-auth-web Length of output: 6596 🏁 Script executed: #!/bin/bash
set -eu
echo "== app/Http/Requests/SquidAllowedIp/CreateRequest.php =="
cat -n app/Http/Requests/SquidAllowedIp/CreateRequest.php
echo
echo "== routes/web.php relevant section =="
sed -n '27,43p' routes/web.php
echo
echo "== routes/api.php relevant section =="
sed -n '24,45p' routes/api.phpRepository: 39ff/squid-db-auth-web Length of output: 4083
🤖 Prompt for AI Agents |
||
|
|
||
| return $squidAllowedIp; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.