Completed
Push — master ( 1d9c94...5b5429 )
by SILENT
02:22
created

single.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The Template for displaying all single posts
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
6
 *
7
 * @package WordPress
8
 * @subpackage Strip
9
 */
10
11
get_header(); ?>
12
13
		<section id="primary">
14
			<main id="content" role="main">
15
16 View Code Duplication
		<?php while ( have_posts() ) : the_post(); ?>
17
18
			<?php get_template_part( 'content', get_post_format() ); ?>
19
20
			<?php strip_content_nav( 'nav-below' ); ?>
0 ignored issues
show
'nav-below' is of type string, but the function expects a array.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
21
22
			<?php
23
				// If comments are open or we have at least one comment, load up the comment template.
24
			if ( comments_open() || '0' !== get_comments_number() ) :
25
				comments_template();
26
			endif; ?>
27
28
		<?php endwhile; // end of the loop. ?>
29
30
		</main><!-- #content -->
31
	</section><!-- #primary -->
32
33
<?php get_footer(); ?>
34