-
Notifications
You must be signed in to change notification settings - Fork 7
Add ability to customize separator across Onym strategies via options and constructor #1
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: main
Are you sure you want to change the base?
Changes from all commits
b2ee8ff
4a393cc
066f522
9d88b5d
211741f
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 |
|---|---|---|
|
|
@@ -17,11 +17,11 @@ | |
| ], | ||
| "require": { | ||
| "php": "^8.0|^8.2|^8.3|^8.4", | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Search for PHP 8.1 related comments or documentation
# Check README and docs for PHP version mentions
fd -e md -e txt | xargs rg -i 'php.*8\.1' -C2
# Check for any PHP version related issues or comments in code
rg -i 'php.*8\.1|8\.1.*incompatible|8\.1.*issue' -C2Repository: Blaspsoft/onym Length of output: 40 🏁 Script executed: #!/bin/bash
set -euo pipefail
# 1) Show composer.json php constraint with line numbers around it
echo "== composer.json =="
if [ -f composer.json ]; then
nl -ba composer.json | sed -n '1,120p'
else
echo "composer.json not found at repo root"
fi
# 2) Search for explicit PHP 8.1 mentions/incompat notes across the repo (excluding vendor)
echo "== rg for PHP 8.1 related mentions =="
rg -n --hidden --glob '!vendor/**' --glob '!node_modules/**' --glob '!storage/**' \
'(php[^0-9]{0,10}8\.1|8\.1[^0-9]{0,10}(incompatible|not supported|not supported|unsupported)|8\.1.*(incompatible|issue|break|fails|problem|support))' \
-S || true
# 3) Broad search for "8.1" occurrences to see any context
echo "== rg for literal 8.1 (broad) =="
rg -n --hidden --glob '!vendor/**' --glob '!node_modules/**' \
'8\.1' -S || trueRepository: Blaspsoft/onym Length of output: 139 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== ls =="
ls -la | head
echo "== composer.json =="
if [ -f composer.json ]; then
# Print first 120 lines with line numbers via awk
awk '{printf "%5d\t%s\n", NR, $0}' composer.json | sed -n '1,120p'
else
echo "composer.json not found at repo root"
fi
echo "== rg for PHP 8.1 related mentions =="
rg -n --hidden --glob '!vendor/**' --glob '!node_modules/**' \
'(php[^0-9]{0,10}8\.1|8\.1[^0-9]{0,10}(incompatible|not supported|unsupported|not supported|problem|fails|issue)|8\.1.*(incompatible|issue|break|fails|problem|support))' \
-S || true
echo "== rg for literal 8.1 occurrences (broad) =="
rg -n --hidden --glob '!vendor/**' --glob '!node_modules/**' \
'8\.1' -S || trueRepository: Blaspsoft/onym Length of output: 2234 Add
🤖 Prompt for AI Agents |
||
| "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0" | ||
| "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0" | ||
| }, | ||
| "require-dev": { | ||
| "orchestra/testbench": "^10.0", | ||
| "phpunit/phpunit": "^11.0" | ||
| "orchestra/testbench": "^10.0|^11.0", | ||
| "phpunit/phpunit": "^11.0|^12.0" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the example output to match the default timestamp format.
The example calls
timestamp()without options, so it uses the default format'Y-m-d_H-i-s'which includes time. The actual result would be"2024-03-15_14-30-00|invoice.pdf", not"2024-03-15|invoice.pdf".To fix, either:
['format' => 'Y-m-d']to produce date-only output, or📝 Proposed fix (option 1: use date-only format)
Or option 2: update the expected result comment:
// Use the timestamp strategy with the custom separator $filename = $onym->timestamp('invoice', 'pdf'); -// Result: "2024-03-15|invoice.pdf" +// Result: "2024-03-15_14-30-00|invoice.pdf"📝 Committable suggestion
🤖 Prompt for AI Agents