-
Notifications
You must be signed in to change notification settings - Fork 566
Description
Describe the bug
I have this old snippet https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/backend/views/settings.php#L258 that use 2 parameter with 2 strings but PHPStan report that the second one is an integer of the Post ID (WPBP/WordPress-Plugin-Boilerplate-Powered#162).
Looking on internet in old articles like https://bigwing.com/blog/create-wordpress-cpt-archive-content-with-cmb2/ the second parameter it was a string.
Looking at the code
CMB2/includes/helper-functions.php
Line 274 in e98c1e9
| function cmb2_get_metabox_form( $meta_box, $object_id = 0, $args = array() ) { |
But if I configure a string as that parameter is used as key to save the settings.
So I don't know if I am doing it wrong or that parameter accept a string and also a integer.