{"id":17258830,"date":"2023-12-07T03:56:05","date_gmt":"2023-12-07T03:56:05","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/dynamic-descriptor-name-not-working-php-8\/"},"modified":"2023-12-07T03:56:05","modified_gmt":"2023-12-07T03:56:05","slug":"dynamic-descriptor-name-not-working-php-8","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/dynamic-descriptor-name-not-working-php-8\/","title":{"rendered":"Dynamic Descriptor: Name not working php 8+"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello, I&#8217;ve overwritten a file within your plugin which was causing the dynamic name descriptor to get dropped off on php 8+. The root cause I believe is the stricter rules around comparing types i.e. string &amp; integer. I&#8217;ve deployed this patch to my website and it is working however I&#8217;m aware that when you make an update, and we update, it will be overwritten so I&#8217;m hoping you can add this to your next rollout of changes.<br \/><br \/>The file in question is this one \/includes\/class-wc-gateway-braintree.php line 1505<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if ( $product &gt; $product_length ) {<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">needs to become<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if ( strlen( $product ) &gt; $product_length ) {\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-17258830","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17258830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17258830\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17258830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}