phpcs-composer
phpcs-composer copied to clipboard
Deprecated Sniff: Generic.Functions.CallTimePassByReference
Describe the bug
WARNING: The 10up PHPCS standard uses 1 deprecated sniff
- Generic.Functions.CallTimePassByReference This sniff has been deprecated since v3.12.1 and will be removed in v4.0.0.
Deprecated sniffs are still run, but will stop working at some point in the future.
Steps to Reproduce
- Install
"10up/phpcs-composer": "^3.0"in composer, or via https://github.com/10up/wp-scaffold - Run the
composer lint-fixcommand - The warning will appear
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
### wp-core ###
version: 6.8.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /news/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 2
default_comment_status: open
environment_type: local
user_count: 3
dotorg_communication: true
### wp-paths-sizes ###
wordpress_path: /Users/michael/Local Sites/redacted/app/public
wordpress_size: 393.52 MB (412631390 bytes)
uploads_path: /Users/michael/Local Sites/redacted/app/public/wp-content/uploads
uploads_size: 216.85 KB (222057 bytes)
themes_path: /Users/michael/Local Sites/redacted/app/public/wp-content/themes
themes_size: 20.74 MB (21750032 bytes)
plugins_path: /Users/michael/Local Sites/redacted/app/public/wp-content/plugins
plugins_size: 114.67 MB (120237010 bytes)
fonts_path: /Users/michael/Local Sites/redacted/app/public/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 2.09 MB (2195456 bytes)
total_size: 531.23 MB (557035945 bytes)
### wp-active-theme ###
name: 10up Block Theme
version: 1.0.0
author: 10up
author_website: https://10up.com
parent_theme: none
theme_features: post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, editor-style
theme_path: /Users/michael/Local Sites/redacted/app/public/wp-content/themes/redacted
### wp-mu-plugins (1) ###
10up Plugin: version: 0.1.0, author: 10up
### wp-plugins-active (15) ###
10up Experience: version: 1.16.4, author: 10up
10up UI Kit Core: version: 2.5.0, author: 10up
Block Visibility: version: 3.7.1, author: Nick Diego
Query Monitor: version: 3.18.0, author: John Blackbourn
Restricted Site Access: version: 7.5.3, author: 10up
Safe Redirect Manager: version: 2.2.2, author: 10up
Safe SVG: version: 2.3.1, author: 10up
UI Kit - Accordion: version: 2.1.4, author: 10up
UI Kit - Carousel: version: 2.3.3, author: 10up
UI Kit - Copyright: version: 2.1.3, author: 10up
UI Kit - Icons: version: 2.1.4, author: 10up
UI Kit - Navigation (BETA): version: 0.5.3, author: 10up
UI Kit - Post Picker: version: 2.4.1, author: 10up
UI Kit - Tabs: version: 2.1.3, author: 10up
Yoast SEO: version: 25.0, author: Team Yoast (latest version: 25.3.1)
### wp-plugins-inactive (5) ###
Create Block Theme: version: 2.7.0, author: WordPress.org
Debug Bar: version: 1.1.6, author: wordpressdotorg
Debug Bar Slow Actions: version: 0.8.4, author: Konstantin Kovshenin
UI Kit - Post Meta Blocks: version: 2.1.3, author: 10up
Wordfence Security: version: 8.0.5, author: Wordfence
### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1808
imagemagick_version: ImageMagick 7.1.0-10 Q16 arm 2021-10-05 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 32 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 786431
imagick::RESOURCETYPE_MAP: 32 GB
imagick::RESOURCETYPE_MEMORY: 16 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YAML, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF
ghostscript_version: 9.56.1
### wp-server ###
server_architecture: Darwin 24.5.0 arm64
httpd_software: nginx/1.26.1
php_version: 8.3.11 64bit
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 8.7.1 (SecureTransport) LibreSSL/3.3.6
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
static_robotstxt_file: false
current: 2025-06-30T09:44:40+00:00
utc-time: Monday, 30-Jun-25 09:44:40 UTC
server-time: 2025-06-30T09:44:39+00:00
### wp-database ###
extension: mysqli
server_version: 8.0.35
client_version: mysqlnd 8.3.11
max_allowed_packet: 16777216
max_connections: 151
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /Users/michael/Local Sites/redacted/app/public/wp-content
WP_PLUGIN_DIR: /Users/michael/Local Sites/redacted/app/public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
WP_DEVELOPMENT_MODE: all
DB_CHARSET: utf8
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist
mu-plugins: writable
Code of Conduct
- [x] I agree to follow this project's Code of Conduct