The following code should not set shiftwidth=1, based on the indentation of the multiline doc block, but only consider the "outer" level of the doc block.
<?php
/**
* foo
*/
function foo() {
bar();
}
Looking at the syntax of this block (on line 3) shows:
group: phpComment->Comment guifg=244(244) guibg=-1(-1)
(via SyntaxAttr script, https://github.com/vim-scripts/SyntaxAttr.vim)